All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ath6kl: Release ar->lock right afer updating net_stats in ath6kl_rx()
@ 2011-08-14 11:38 Vasanthakumar Thiagarajan
  2011-08-14 11:38 ` [PATCH 2/4] ath6kl: Minor cleanup in min_hdr_len computation Vasanthakumar Thiagarajan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Vasanthakumar Thiagarajan @ 2011-08-14 11:38 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

This lock is intended to protect stats there, not neccessary to
hold it beyond that.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath6kl/txrx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index 167bdb9..d546051 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -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)) {
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-17 16:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-14 11:38 [PATCH 1/4] ath6kl: Release ar->lock right afer updating net_stats in ath6kl_rx() Vasanthakumar Thiagarajan
2011-08-14 11:38 ` [PATCH 2/4] ath6kl: Minor cleanup in min_hdr_len computation Vasanthakumar Thiagarajan
2011-08-14 11:38 ` [PATCH 3/4] ath6kl: Cleanup ath6kl_wmi_data_hdr_remove() Vasanthakumar Thiagarajan
2011-08-14 11:38 ` [PATCH 4/4] ath6kl: Fix bug in computing AMSU subframe padding Vasanthakumar Thiagarajan
2011-08-15  2:22 ` [PATCH 1/4] ath6kl: Release ar->lock right afer updating net_stats in ath6kl_rx() Thiagarajan, Vasanthakumar
2011-08-17 16:31 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.