summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Makefile
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@rivosinc.com>2022-09-20 13:00:37 -0700
committerPalmer Dabbelt <palmer@rivosinc.com>2022-10-12 22:02:49 -0700
commitf2913d006fcdb61719635e093d1b5dd0dafecac7 (patch)
tree219df1e8c09f520d2965147077145bf2b902614e /arch/riscv/Makefile
parent1b5964b2f9f67ded7ce522870698ffdd4c889255 (diff)
downloadlinux-f2913d006fcdb61719635e093d1b5dd0dafecac7.tar.bz2
RISC-V: Avoid dereferening NULL regs in die()
I don't think we can actually die() without a regs pointer, but the compiler was warning about a NULL check after a dereference. It seems prudent to just avoid the possibly-NULL dereference, given that when die()ing the system is already toast so who knows how we got there. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20220920200037.6727-1-palmer@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/Makefile')
0 files changed, 0 insertions, 0 deletions