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:07:45 +0000 (10:07 +0200)
commit40c38ca6075b5e0fdee03731936b0b5f86a49cbc
tree8d558701c185037d1059b7ed21e6401cf7def9ac
parent25581084396957ea7fc0a265c3ab4bacb07b15c1
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