1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/hexagon
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
..
configs treewide: drop CONFIG_EMBEDDED 2023-08-21 13:46:25 -07:00
include hexagon: Move kernel prototypes out of uapi/asm/setup.h header 2025-01-30 18:45:45 -08:00
kernel hexagon: Fix unbalanced spinlock in die() 2025-01-30 18:46:06 -08:00
lib hexagon: simplify asm/io.h for !HAS_IOPORT 2024-10-28 21:44:29 +00:00
mm hexagon: vm_tlb: include asm/tlbflush.h for prototypes 2023-12-10 17:21:35 -08:00
Kbuild hexagon: move core-y in arch/hexagon/Makefile to arch/hexagon/Kbuild 2021-05-26 23:11:47 +09:00
Kconfig hexagon: Remove GENERIC_PENDING_IRQ leftover 2025-01-15 10:56:22 +01:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile hexagon: Disable constant extender optimization for LLVM prior to 19.1.0 2024-12-17 14:07:53 -08:00