projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab8e523
)
s390/zcore: Fix HSA copy length for last block
author
Michael Holzheu
<holzheu@linux.vnet.ibm.com>
Fri, 19 Apr 2013 16:03:02 +0000
(18:03 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Tue, 23 Apr 2013 08:18:07 +0000
(10:18 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/s390/char/zcore.c
b/drivers/s390/char/zcore.c
index
1d61a01
..
2282061
100644
(file)
--- a/
drivers/s390/char/zcore.c
+++ b/
drivers/s390/char/zcore.c
@@
-127,7
+127,7
@@
static int memcpy_hsa(void *dest, unsigned long src, size_t count, int mode)
}
if (mode == TO_USER) {
if (copy_to_user((__force __user void*) dest + offs, buf,
-
PAGE_SIZE
))
+
count - offs
))
return -EFAULT;
} else
memcpy(dest + offs, buf, count - offs);