summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorZhen Ni <zhen.ni@easystack.cn>2025-09-03 09:51:12 +0300
committerGabriele Monaco <gmonaco@redhat.com>2025-09-15 09:36:35 +0300
commit9b5096761c184b3923ae45c5e82da31005a765c7 (patch)
treec2b1ae4074f9facf37734a71026a51d5a1630847 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent3afaff7a0ce97457c8ab46862f2c06603a89962e (diff)
downloadlinux-9b5096761c184b3923ae45c5e82da31005a765c7.tar.xz
rv: Fix missing mutex unlock in rv_register_monitor()
If create_monitor_dir() fails, the function returns directly without releasing rv_interface_lock. This leaves the mutex locked and causes subsequent monitor registration attempts to deadlock. Fix it by making the error path jump to out_unlock, ensuring that the mutex is always released before returning. Fixes: 24cbfe18d55a ("rv: Merge struct rv_monitor_def into struct rv_monitor") Signed-off-by: Zhen Ni <zhen.ni@easystack.cn> Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Reviewed-by: Nam Cao <namcao@linutronix.de> Link: https://lore.kernel.org/r/20250903065112.1878330-1-zhen.ni@easystack.cn Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions