linux/arch/hexagon/kernel
Lin Yujun 03410e8756 hexagon: Fix unbalanced spinlock in die()
die executes holding the spinlock of &die.lock and unlock
it after printing the oops message.
However in the code if the notify_die() returns NOTIFY_STOP
, die() exit with returning 1 but never unlocked the spinlock.

Fix this by adding spin_unlock_irq(&die.lock) before returning.

Fixes: cf9750bae2 ("Hexagon: Provide basic debugging and system trap support.")
Signed-off-by: Lin Yujun <linyujun809@huawei.com>
Link: https://lore.kernel.org/r/20230522025608.2515558-1-linyujun809@huawei.com
Signed-off-by: Brian Cain <bcain@quicinc.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
2025-01-30 18:46:06 -08:00
..
.gitignore
Makefile
Makefile.syscalls
asm-offsets.c
dma.c
head.S
hexagon_ksyms.c
irq_cpu.c
kgdb.c
module.c
process.c
ptrace.c
reset.c
setup.c
signal.c
smp.c
stacktrace.c
syscalltab.c
time.c hexagon: time: Remove redundant null check for resource 2025-01-30 18:45:32 -08:00
trampoline.S
traps.c hexagon: Fix unbalanced spinlock in die() 2025-01-30 18:46:06 -08:00
vdso.c
vm_entry.S
vm_events.c
vm_init_segtable.S
vm_ops.S
vm_switch.S
vm_vectors.S
vmlinux.lds.S