From: Al Viro Date: Fri, 9 Sep 2016 23:23:33 +0000 (-0400) Subject: microblaze: fix __get_user() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e98b9e37ae04562d52c96f46b3cf4c2e80222dc1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git microblaze: fix __get_user() Cc: stable@vger.kernel.org Signed-off-by: Al Viro --- diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/include/asm/uaccess.h index 3a486d3b6f52..826676778094 100644 --- a/arch/microblaze/include/asm/uaccess.h +++ b/arch/microblaze/include/asm/uaccess.h @@ -227,7 +227,7 @@ extern long __user_bad(void); #define __get_user(x, ptr) \ ({ \ - unsigned long __gu_val; \ + unsigned long __gu_val = 0; \ /*unsigned long __gu_ptr = (unsigned long)(ptr);*/ \ long __gu_err; \ switch (sizeof(*(ptr))) { \