openrisc: fix copy_from_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 20 Aug 2016 21:05:21 +0000 (17:05 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:39 +0000 (01:01 +0000)
commit6882b9a54f40f23f8b10f5b7df411cad3b52c5a7
tree79cbbdc934f2bc3e7cc547bfe3e968164710b1aa
parent3229d77d0d4334006ec18bff909b5913512bb1a9
openrisc: fix copy_from_user()

commit acb2505d0119033a80c85ac8d02dccae41271667 upstream.

... that should zero on faults.  Also remove the <censored> helpful
logics wrt range truncation copied from ppc32.  Where it had ever
been needed only in case of copy_from_user() *and* had not been merged
into the mainline until a month after the need had disappeared.
A decade before openrisc went into mainline, I might add...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/openrisc/include/asm/uaccess.h