projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7357611
)
carl9170: fix hang in AP mode when HT STA does PSM
author
Christian Lamparter
<
[email protected]
>
Fri, 17 Sep 2010 22:15:13 +0000
(
00:15
+0200)
committer
John W. Linville
<
[email protected]
>
Tue, 21 Sep 2010 15:05:26 +0000
(11:05 -0400)
This is a obvious bug, skb_queue_walk does not
work if the iterator gets removed from the queue.
Signed-off-by: Christian Lamparter <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/carl9170/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/carl9170/main.c
b/drivers/net/wireless/ath/carl9170/main.c
index ea49d54ce03bf12fd382abf4a1f61c801eace4f1..43de9dfa58208c0b38de62a2c04b341057d290e0 100644
(file)
--- a/
drivers/net/wireless/ath/carl9170/main.c
+++ b/
drivers/net/wireless/ath/carl9170/main.c
@@
-1412,7
+1412,7
@@
static void carl9170_op_sta_notify(struct ieee80211_hw *hw,
{
struct ar9170 *ar = hw->priv;
struct carl9170_sta_info *sta_info = (void *) sta->drv_priv;
- struct sk_buff *skb;
+ struct sk_buff *skb
, *tmp
;
struct sk_buff_head free;
int i;
@@
-1462,7
+1462,7
@@
static void carl9170_op_sta_notify(struct ieee80211_hw *hw,
for (i = 0; i < ar->hw->queues; i++) {
spin_lock_bh(&ar->tx_pending[i].lock);
- skb_queue_walk
(&ar->tx_pending[i], skb
) {
+ skb_queue_walk
_safe(&ar->tx_pending[i], skb, tmp
) {
struct _carl9170_tx_superframe *super;
struct ieee80211_hdr *hdr;