From: Al Viro Date: Fri, 9 Sep 2016 23:20:13 +0000 (-0400) Subject: m32r: fix __get_user() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c90a3bc5061d57e7931a9b7ad14784e1a0ed497d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git m32r: fix __get_user() Cc: stable@vger.kernel.org Signed-off-by: Al Viro --- diff --git a/arch/m32r/include/asm/uaccess.h b/arch/m32r/include/asm/uaccess.h index cac7014daef3..6f8982157a75 100644 --- a/arch/m32r/include/asm/uaccess.h +++ b/arch/m32r/include/asm/uaccess.h @@ -219,7 +219,7 @@ extern int fixup_exception(struct pt_regs *regs); #define __get_user_nocheck(x, ptr, size) \ ({ \ long __gu_err = 0; \ - unsigned long __gu_val; \ + unsigned long __gu_val = 0; \ might_fault(); \ __get_user_size(__gu_val, (ptr), (size), __gu_err); \ (x) = (__force __typeof__(*(ptr)))__gu_val; \