Use the returned amount of data to copy to the destination buffer

Instead of a random number from a previous operation

Change-Id: Ie338d754deedc359b06beaef6ed8033b562a582f
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
diff --git a/sbe_chipOp_handler.cpp b/sbe_chipOp_handler.cpp
index e7d1f57..361e9f4 100644
--- a/sbe_chipOp_handler.cpp
+++ b/sbe_chipOp_handler.cpp
@@ -95,7 +95,7 @@
     }
 
     //Extract the valid number of words read.
-    for (auto i = 0; i < (rc / WORD_SIZE); ++i)
+    for (auto i = 0; i < (len / WORD_SIZE); ++i)
     {
         response.push_back(be32toh(buffer[i]));
     }