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>
1 file changed