1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 16:53:58 -05:00
linux/arch/riscv/include/asm
Ben Dooks b9b916aee6
riscv: uaccess: fix type of 0 variable on error in get_user()
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>
2023-01-05 12:30:41 -08:00
..
vdso
alternative-macros.h riscv: Don't duplicate _ALTERNATIVE_CFG* macros 2022-12-09 18:14:24 -08:00
alternative.h
asm-extable.h
asm-offsets.h
asm-prototypes.h
asm.h Merge patch series "RISC-V: Align the shadow stack" 2022-12-12 09:30:37 -08:00
atomic.h
barrier.h
bitops.h
bug.h
cache.h
cacheflush.h Merge patch series "RISC-V: Ensure Zicbom has a valid block size" 2022-12-09 19:13:01 -08:00
cacheinfo.h
clint.h
clocksource.h
cmpxchg.h
compat.h
cpu_ops.h
cpu_ops_sbi.h
cpuidle.h
csr.h
current.h
delay.h
efi.h Linux 6.1-rc8 2022-12-07 19:08:57 +01:00
elf.h
errata_list.h
extable.h
fence.h
fixmap.h
ftrace.h
futex.h
gdb_xml.h
gpr-num.h
hugetlb.h riscv/mm: add arch hook arch_clear_hugepage_flags 2022-12-02 11:26:02 -08:00
hwcap.h riscv: Apply a static assert to riscv_isa_ext_id 2022-12-12 22:21:25 -08:00
image.h
insn-def.h
io.h RISC-V: Fix MEMREMAP_WB for systems with Svpbmt 2022-12-08 15:43:58 -08:00
irq.h
irq_work.h
irqflags.h
jump_label.h
kasan.h
Kbuild
kdebug.h
kexec.h RISC-V: kexec: Fix memory leak of fdt buffer 2022-12-05 10:59:51 -08:00
kfence.h
kgdb.h
kprobes.h riscv: add riscv rethook implementation 2022-12-02 13:04:05 -08:00
kvm_host.h RISC-V: KVM: Save mvendorid, marchid, and mimpid when creating VCPU 2022-12-07 09:17:43 +05:30
kvm_types.h
kvm_vcpu_fp.h
kvm_vcpu_insn.h
kvm_vcpu_sbi.h RISC-V: KVM: Move sbi related struct and functions to kvm_vcpu_sbi.h 2022-12-07 09:17:27 +05:30
kvm_vcpu_timer.h
linkage.h
mmio.h
mmiowb.h
mmu.h riscv: mm: notify remote harts about mmu cache updates 2022-12-08 15:18:16 -08:00
mmu_context.h
mmzone.h
module.h
module.lds.h
numa.h
page.h riscv: Move cast inside kernel_mapping_[pv]a_to_[vp]a 2022-12-08 17:22:54 -08:00
parse_asm.h
patch.h
pci.h
perf_event.h
pgalloc.h
pgtable-32.h
pgtable-64.h riscv: Fix P4D_SHIFT definition for 3-level page table mode 2022-12-12 22:38:18 -08:00
pgtable-bits.h
pgtable.h RISC-V Patches for the 6.2 Merge Window, Part 1 2022-12-14 15:23:49 -08:00
probes.h
processor.h
ptdump.h
ptrace.h
sbi.h
seccomp.h
sections.h
set_memory.h
signal.h
signal32.h
smp.h riscv: kexec: Fixup crash_smp_send_stop without multi cores 2022-11-29 21:50:59 -08:00
soc.h
sparsemem.h
stackprotector.h
stacktrace.h
string.h
suspend.h
switch_to.h
syscall.h
thread_info.h
timex.h
tlb.h
tlbflush.h riscv: mm: notify remote harts about mmu cache updates 2022-12-08 15:18:16 -08:00
uaccess.h riscv: uaccess: fix type of 0 variable on error in get_user() 2023-01-05 12:30:41 -08:00
unistd.h
uprobes.h
vdso.h
vendorid_list.h
vermagic.h
vmalloc.h
word-at-a-time.h
xip_fixup.h