From 3f4f629fc8fb79c489d302968a4e0cb489c50258 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Fri, 4 Nov 2011 11:10:04 -0700 Subject: [PATCH] net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down Signed-off-by: Dmitry Shmidt --- drivers/net/wireless/bcm4329/dhd_linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.34.1