Skip to content

Commit

Permalink
ath6kl: Release ar->lock right afer updating net_stats in ath6kl_rx()
Browse files Browse the repository at this point in the history
This lock is intended to protect stats there, not neccessary to
hold it beyond that.

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 Aug 31, 2011
1 parent 65d2bb1 commit 83dc5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ath/ath6kl/txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,13 +1044,13 @@ void ath6kl_rx(struct htc_target *target, struct htc_packet *packet)
ar->net_stats.rx_packets++;
ar->net_stats.rx_bytes += packet->act_len;

spin_unlock_bh(&ar->lock);

skb_put(skb, packet->act_len + HTC_HDR_LENGTH);
skb_pull(skb, HTC_HDR_LENGTH);

ath6kl_dbg_dump(ATH6KL_DBG_RAW_BYTES, __func__, skb->data, skb->len);

spin_unlock_bh(&ar->lock);

skb->dev = ar->net_dev;

if (!test_bit(WMI_ENABLED, &ar->flag)) {
Expand Down

0 comments on commit 83dc5f2

Please sign in to comment.