From: Amitkumar Karwar Date: Thu, 1 Jan 2015 08:13:39 +0000 (-0800) Subject: Bluetooth: btmrvl: fix race issue while stopping main thread X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~184^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b324fa6915bf4ad7d28e58a5a004f16e470e58d;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed