|
@@ -616,6 +616,11 @@ static int btmrvl_service_main_thread(void *data)
|
|
|
|
|
|
BT_DBG("main_thread woke up");
|
|
BT_DBG("main_thread woke up");
|
|
|
|
|
|
|
|
+ if (kthread_should_stop()) {
|
|
|
|
+ BT_DBG("main_thread: break from main thread");
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
spin_lock_irqsave(&priv->driver_lock, flags);
|
|
spin_lock_irqsave(&priv->driver_lock, flags);
|
|
if (adapter->int_count) {
|
|
if (adapter->int_count) {
|
|
adapter->int_count = 0;
|
|
adapter->int_count = 0;
|