We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674bc01 commit d080a08Copy full SHA for d080a08
arch/riscv/include/asm/uaccess.h
@@ -319,7 +319,7 @@ unsigned long __must_check clear_user(void __user *to, unsigned long n)
319
320
#define __get_kernel_nofault(dst, src, type, err_label) \
321
do { \
322
- long __kr_err; \
+ long __kr_err = 0; \
323
\
324
__get_user_nocheck(*((type *)(dst)), (type *)(src), __kr_err); \
325
if (unlikely(__kr_err)) \
@@ -328,7 +328,7 @@ do { \
328
329
#define __put_kernel_nofault(dst, src, type, err_label) \
330
331
332
333
__put_user_nocheck(*((type *)(src)), (type *)(dst), __kr_err); \
334
0 commit comments