From: Al Viro Date: Sat, 20 Aug 2016 21:05:21 +0000 (-0400) Subject: openrisc: fix copy_from_user() X-Git-Tag: v3.2.84~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6882b9a54f40f23f8b10f5b7df411cad3b52c5a7;p=pandora-kernel.git openrisc: fix copy_from_user() commit acb2505d0119033a80c85ac8d02dccae41271667 upstream. ... that should zero on faults. Also remove the 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed