Permalink
Browse files

net: wireless: bcmdhd: Skip dhd_bus_stop() if bus is already down

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
  • Loading branch information...
Dmitry Shmidt authored and renaudallard committed Nov 4, 2011
1 parent 6a4f88c commit 87de2751367c6a63e16b44922b01d9efb84dc65d
Showing with 2 additions and 1 deletion.
  1. +2 −1 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);
}
}

0 comments on commit 87de275

Please sign in to comment.