[PATCH] RISC-V: Avoid dereferening NULL regs in die()

Palmer Dabbelt palmer at rivosinc.com
Wed Oct 12 22:15:50 PDT 2022


On Tue, 20 Sep 2022 13:00:37 -0700, Palmer Dabbelt wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] RISC-V: Avoid dereferening NULL regs in die()
      https://git.kernel.org/palmer/c/f2913d006fcd

Best regards,
-- 
Palmer Dabbelt <palmer at rivosinc.com>



More information about the linux-riscv mailing list