linux-stable/arch/riscv/include/asm
Ben Dooks d0e5ab9e63 riscv: uaccess: fix type of 0 variable on error in get_user()
commit b9b916aee6 upstream.

If the get_user(x, ptr) has x as a pointer, then the setting
of (x) = 0 is going to produce the following sparse warning,
so fix this by forcing the type of 'x' when access_ok() fails.

fs/aio.c:2073:21: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20221229170545.718264-1-ben-linux@fluff.org
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-18 11:30:50 +01:00
..
asm-offsets.h
asm-prototypes.h
asm.h
atomic.h
barrier.h RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw 2020-07-29 10:16:54 +02:00
bitops.h
bug.h
cache.h
cacheflush.h
cmpxchg.h riscv/atomic: Fix sign extension for RV64I 2020-06-30 23:17:14 -04:00
csr.h
current.h
delay.h
dma-mapping.h
elf.h
fence.h
ftrace.h riscv: Workaround mcount name prior to clang-13 2021-05-22 10:59:49 +02:00
hwcap.h
io.h
irq.h
irqflags.h
Kbuild
kprobes.h
linkage.h
mmu.h
mmu_context.h
module.h
page.h riscv: virt_addr_valid must check the address belongs to linear mapping 2021-02-23 15:00:56 +01:00
pci.h
perf_event.h
pgalloc.h
pgtable-32.h arch: pgtable: define MAX_POSSIBLE_PHYSMEM_BITS where needed 2021-11-06 13:58:45 +01:00
pgtable-64.h
pgtable-bits.h
pgtable.h
processor.h RISC-V: fix barrier() use in <vdso/processor.h> 2022-06-25 11:49:17 +02:00
ptrace.h
sbi.h
smp.h
spinlock.h
spinlock_types.h
string.h
switch_to.h riscv: Make __fstate_clean() work correctly. 2019-08-25 10:47:51 +02:00
syscall.h riscv: Fix syscall_get_arguments() and syscall_set_arguments() 2019-04-17 08:38:51 +02:00
thread_info.h riscv: use 16KB kernel stack on 64-bit 2020-07-22 09:32:11 +02:00
timex.h
tlb.h
tlbflush.h
uaccess.h riscv: uaccess: fix type of 0 variable on error in get_user() 2023-01-18 11:30:50 +01:00
unistd.h
vdso.h
word-at-a-time.h