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: 2.1b_release~2223 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a56af82ea9cd0291246c336472385e202e3a4893;p=kernel%2Fkernel-mfld-blackbay.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 3ec1f3f..5f5b418 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); } }