s390/zcore: Fix HSA copy length for last block
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Fri, 19 Apr 2013 16:03:02 +0000 (18:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Apr 2013 08:18:07 +0000 (10:18 +0200)
commit241fd9bcbc10c144531e88b5e3a62bc11090e5e4
tree303ab61c82877bf1572509b49ba964152864e7f0
parentab8e5235868f99dfc779e4eaff28f53d63714ce4
s390/zcore: Fix HSA copy length for last block

Currently always one page is copied to a user buffer for the last
HSA block in memcpy_hsa(). Now the correct length is used.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/zcore.c