blob: 2e742e4484787364d113ff0d3e3ae36ba14a9860 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
From: Bob Copeland <me@bobcopeland.com>
Date: Wed, 12 Oct 2016 08:24:54 -0400
Subject: [PATCH] mac80211: fix up mismerge of ieee80211_tx_dequeue
Looks like this spinlock wound up on the wrong side of the
linearize, and I also lost the part that re-enters the loop.
Fix up to match mac80211-next.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
---
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -3457,17 +3457,17 @@ begin:
skb_queue_splice_tail(&tx.skbs, &txqi->frags);
}
-out:
- spin_unlock_bh(&fq->lock);
-
if (skb && skb_has_frag_list(skb) &&
!ieee80211_hw_check(&local->hw, TX_FRAG_LIST)) {
if (skb_linearize(skb)) {
ieee80211_free_txskb(&local->hw, skb);
- return NULL;
+ goto begin;
}
}
+out:
+ spin_unlock_bh(&fq->lock);
+
return skb;
}
EXPORT_SYMBOL(ieee80211_tx_dequeue);
|