ath6kl: Fix race in heart beat polling
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Thu, 20 Jun 2013 07:17:20 +0000 (12:47 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 7 Aug 2013 07:53:36 +0000 (10:53 +0300)
commitf32036e823c45cb4974aab1d0ae66d716bfc9aa6
tree62e6915c2601b30cad35c0f6d3dc4d1c49c225fd
parent8cc8df906f953ae0cfe785720989928021d7fe2d
ath6kl: Fix race in heart beat polling

Make sure to cancel heart beat timer before
freeing wmi to avoid potential NULL pointer
dereference.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/init.c