]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
openrisc: fix copy_from_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 20 Aug 2016 21:05:21 +0000 (17:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:09:40 +0000 (10:09 +0200)
commit08382338b815a5ca7cdf777c535283dc0206abce
tree4f52a80a524aa349e01b6755fcdb13d9682e1d43
parente3d74efc704b0e05b79c6f0cdc97ea63453e2f8d
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/openrisc/include/asm/uaccess.h