Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: bnep: Fix deadlock in session deletion
Commit f4d7cd4 introduced the usage of kthread API. kthread_stop is a blocking function which returns only when the thread exits. In this case, the thread can't exit because it's waiting for the write lock, which is being held by bnep_del_connection() which is waiting for the thread to exit -- deadlock. Use atomic_t/wake_up_process instead to signal to the thread to exit. Signed-off-by: Jaikumar Ganesh <[email protected]> Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Gustavo F. Padovan <[email protected]>
- Loading branch information