projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fe6f5c
)
sparc32: fix copy_from_user()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 22 Aug 2016 04:23:07 +0000
(
00:23
-0400)
committer
Sasha Levin
<alexander.levin@verizon.com>
Mon, 3 Oct 2016 01:14:47 +0000
(21:14 -0400)
[ Upstream commit
917400cecb4b52b5cde5417348322bb9c8272fa6
]
Cc: stable@vger.kernel.org
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/sparc/include/asm/uaccess_32.h
patch
|
blob
|
history
diff --git
a/arch/sparc/include/asm/uaccess_32.h
b/arch/sparc/include/asm/uaccess_32.h
index 64ee103dc29da142305d93d26fd44cf4a62ae699..dfb542c7cc714ea5b5cf19d6d3f853cb1a9c08ed 100644
(file)
--- a/
arch/sparc/include/asm/uaccess_32.h
+++ b/
arch/sparc/include/asm/uaccess_32.h
@@
-328,8
+328,10
@@
static inline unsigned long copy_from_user(void *to, const void __user *from, un
{
if (n && __access_ok((unsigned long) from, n))
return __copy_user((__force void __user *) to, from, n);
- else
+ else {
+ memset(to, 0, n);
return n;
+ }
}
static inline unsigned long __copy_from_user(void *to, const void __user *from, unsigned long n)