]> git.baikalelectronics.ru Git - kernel.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)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Sep 2016 21:49:44 +0000 (17:49 -0400)
commit28c75fd49c0519bb0278cb722d0a58a655055250
tree5537954675e9bd923ab1bfe1fea29806e6334ae6
parent767a58d2e91bcc0ae3d8b1c4b442e076f734a23e
openrisc: fix copy_from_user()

... 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...

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/openrisc/include/asm/uaccess.h