asm-generic: make get_user() clear the destination on errors
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Aug 2016 03:19:01 +0000 (23:19 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:38 +0000 (01:01 +0000)
commit33734b78269e1d211cd1288c49756636042aa31e
tree6429d4b59c15876300c5fc7e40bb1199efca8e17
parent87f3c8956e3fea2a704c3834e0666e8fae5a529e
asm-generic: make get_user() clear the destination on errors

commit 9ad18b75c2f6e4a78ce204e79f37781f8815c0fa upstream.

both for access_ok() failures and for faults halfway through

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/asm-generic/uaccess.h