mn10300: failing __get_user() and get_user() should zero
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 20 Aug 2016 20:32:02 +0000 (16:32 -0400)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 3 Oct 2016 01:13:40 +0000 (21:13 -0400)
[ Upstream commit 43403eabf558d2800b429cd886e996fd555aa542 ]

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/mn10300/include/asm/uaccess.h

index 537278746a1534cead71e487aea7f13533e60b97..4af43d9ba4950dc7ec7d04051d276f66d35ceeac 100644 (file)
@@ -181,6 +181,7 @@ struct __large_struct { unsigned long buf[100]; };
                "2:\n"                                          \
                "       .section        .fixup,\"ax\"\n"        \
                "3:\n\t"                                        \
+               "       mov             0,%1\n"                 \
                "       mov             %3,%0\n"                \
                "       jmp             2b\n"                   \
                "       .previous\n"                            \