summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/cmtp/capi.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2011-08-05 10:41:35 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-08-11 19:50:27 -0300
commit751c10a56802513a6b057c8cf1552cecc1c9afde (patch)
tree958b4624a551577f68e0f0e357112637a10c520a /net/bluetooth/cmtp/capi.c
parent7bdb8a5cf17f66614a9897645efcd4ccc27535ee (diff)
downloadblackbird-op-linux-751c10a56802513a6b057c8cf1552cecc1c9afde.tar.gz
blackbird-op-linux-751c10a56802513a6b057c8cf1552cecc1c9afde.zip
Bluetooth: bnep: Fix deadlock in session deletion
Commit f4d7cd4a4c 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 <jaikumar@google.com> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/cmtp/capi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud