diff options
author | Lin Yujun <linyujun809@huawei.com> | 2023-05-22 05:56:08 +0300 |
---|---|---|
committer | Brian Cain <brian.cain@oss.qualcomm.com> | 2025-01-31 05:46:06 +0300 |
commit | 03410e87563a122075c3721acc7d5510e41d8332 (patch) | |
tree | 482d57b73eeea46c85781d8605a3466dfa6f85a6 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | e8265a947b0267950a2b74e5a4f118e6764540e8 (diff) | |
download | linux-03410e87563a122075c3721acc7d5510e41d8332.tar.xz |
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: cf9750bae262 ("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>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions