ath6kl: Fix missing release of semaphore in ath6kl_stop_txrx()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Tue, 14 Feb 2012 15:02:59 +0000 (20:32 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 27 Feb 2012 17:24:30 +0000 (19:24 +0200)
This fixes smatch warning "inconsistent returns sem:&ar->sem".

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

index 72f1b4f..6fed628 100644 (file)
@@ -1733,5 +1733,7 @@ void ath6kl_stop_txrx(struct ath6kl *ar)
        ath6kl_reset_device(ar, ar->target_type, true, true);
 
        clear_bit(WLAN_ENABLED, &ar->flag);
+
+       up(&ar->sem);
 }
 EXPORT_SYMBOL(ath6kl_stop_txrx);