net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down
authorDmitry Shmidt <dimitrysh@google.com>
Fri, 4 Nov 2011 18:10:04 +0000 (11:10 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 4 Nov 2011 18:13:49 +0000 (11:13 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcm4329/dhd_linux.c

index 3ec1f3f108d41d7f7794a80e89b35d1e060cb719..5f5b418abc260336c83f394aad90179d05e2d021 100644 (file)
@@ -1519,7 +1519,8 @@ dhd_dpc_thread(void *data)
                                        dhd_os_wake_unlock(&dhd->pub);
                                }
                        } else {
-                               dhd_bus_stop(dhd->pub.bus, TRUE);
+                               if (dhd->pub.up)
+                                       dhd_bus_stop(dhd->pub.bus, TRUE);
                                dhd_os_wake_unlock(&dhd->pub);
                        }
                }