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