diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2015-01-01 11:13:39 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-01-06 18:19:35 +0300 |
commit | 8b324fa6915bf4ad7d28e58a5a004f16e470e58d (patch) | |
tree | 44f0802f8ecc5397d4462065357cb06be6e63630 /drivers/bluetooth/btmrvl_drv.h | |
parent | 661cf88acd84875c275820ed01e42b25c4e9a1e2 (diff) | |
download | linux-8b324fa6915bf4ad7d28e58a5a004f16e470e58d.tar.xz |
Bluetooth: btmrvl: fix race issue while stopping main thread
btmrvl_remove_card() calls kthread_stop() to stop the main thread,
but kthread_should_stop() is checked when all the activities are done
in the main thread before sleeping.
We will have kthread_should_stop() check as soon as main thread is
woken up. This fixes a crash issue caused due to an invalid memory
access while unnecessarily processing interrupts after card removal.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btmrvl_drv.h')
0 files changed, 0 insertions, 0 deletions