summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMursalin Akon <makon@nvidia.com>2013-01-08 16:32:05 -0800
committerMatthew Pedro <mapedro@nvidia.com>2013-01-09 10:58:50 -0800
commite4e11f3c524c2679ee007588e2199a5c22a6a104 (patch)
tree1092f00090bb7a6961ee17c3be95cb100c666ede /drivers
parent8acf989d5896b152cc88f8b29afd11d522f903e3 (diff)
driver: bcmdhd: do not allow hang thread after cleanup
do not allow scheduling hang thread after cleanup is done. Bug 1210849 Bug 1205910 Bug 1163014 Change-Id: Idc5f9fd6a3d210843f1168e57ceef107599d5789 Signed-off-by: Mursalin Akon <makon@nvidia.com> Reviewed-on: http://git-master/r/189721 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Reviewed-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/bcmdhd/dhd_linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c
index 44879e4a1170..a6b6dc8be91f 100644
--- a/drivers/net/wireless/bcmdhd/dhd_linux.c
+++ b/drivers/net/wireless/bcmdhd/dhd_linux.c
@@ -3676,6 +3676,7 @@ void dhd_detach(dhd_pub_t *dhdp)
#endif /* defined(CONFIG_HAS_EARLYSUSPEND) */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27))
+ dhd->pub.hang_was_sent = 1;
cancel_work_sync(&dhd->work_hang);
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)) */