driver: bcmdhd: do not allow hang thread after cleanup
Mursalin Akon [Wed, 9 Jan 2013 00:32:05 +0000 (16:32 -0800)]
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>

drivers/net/wireless/bcmdhd/dhd_linux.c

index 44879e4..a6b6dc8 100644 (file)
@@ -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))  */