From: Dmitry Shmidt Date: Fri, 4 Nov 2011 18:10:04 +0000 (-0700) Subject: net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down X-Git-Tag: firefly_0821_release~7613^2~234 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3f4f629fc8fb79c489d302968a4e0cb489c50258;p=firefly-linux-kernel-4.4.55.git net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcm4329/dhd_linux.c b/drivers/net/wireless/bcm4329/dhd_linux.c index 3ec1f3f108d4..5f5b418abc26 100644 --- a/drivers/net/wireless/bcm4329/dhd_linux.c +++ b/drivers/net/wireless/bcm4329/dhd_linux.c @@ -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); } }