Skip to content

Commit

Permalink
ath6kl: Fix missing release of semaphore in ath6kl_stop_txrx()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Feb 27, 2012
1 parent 0ea10f2 commit e8ad9a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit e8ad9a0

Please sign in to comment.