1464feb5b6
commit b9b916aee6715cd7f3318af6dc360c4729417b94 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> |
||
---|---|---|
.. | ||
asm-offsets.h | ||
asm-prototypes.h | ||
asm.h | ||
atomic.h | ||
barrier.h | ||
bitops.h | ||
bug.h | ||
cache.h | ||
cacheflush.h | ||
cmpxchg.h | ||
csr.h | ||
current.h | ||
delay.h | ||
elf.h | ||
fence.h | ||
fixmap.h | ||
ftrace.h | ||
futex.h | ||
hugetlb.h | ||
hwcap.h | ||
image.h | ||
io.h | ||
irq.h | ||
irqflags.h | ||
Kbuild | ||
kprobes.h | ||
linkage.h | ||
mmiowb.h | ||
mmu_context.h | ||
mmu.h | ||
module.h | ||
page.h | ||
pci.h | ||
perf_event.h | ||
pgalloc.h | ||
pgtable-32.h | ||
pgtable-64.h | ||
pgtable-bits.h | ||
pgtable.h | ||
processor.h | ||
ptrace.h | ||
sbi.h | ||
sifive_l2_cache.h | ||
smp.h | ||
sparsemem.h | ||
spinlock_types.h | ||
spinlock.h | ||
string.h | ||
switch_to.h | ||
syscall.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
uaccess.h | ||
unistd.h | ||
vdso.h | ||
word-at-a-time.h |