Permalink
Browse files

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

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

0 comments on commit 6af5a02

Please sign in to comment.