diff options
author | Stefan Wahren <wahrenst@gmx.net> | 2025-03-09 15:50:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-20 17:11:20 +0300 |
commit | 3db89bc6d973e2bcaa852f6409c98c228f39a926 (patch) | |
tree | 84413d6cf874282469ee2baa434cc9a7408530f8 /tools/perf/scripts/python | |
parent | 63f4dbb196db60a8536ba3d1b835d597a83f6cbb (diff) | |
download | linux-3db89bc6d973e2bcaa852f6409c98c228f39a926.tar.xz |
staging: vchiq_arm: Fix possible NPR of keep-alive thread
In case vchiq_platform_conn_state_changed() is never called or fails before
driver removal, ka_thread won't be a valid pointer to a task_struct. So
do the necessary checks before calling kthread_stop to avoid a crash.
Fixes: 863a756aaf49 ("staging: vc04_services: vchiq_core: Stop kthreads on vchiq module unload")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20250309125014.37166-3-wahrenst@gmx.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions