Skip to contentSkip to conversation

mac80211: tx, use dev_kfree_skb_any for beacon_get

PATCH New Jiri Slaby 1 participant 1 message Jul 14, 2008 mac80211

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 mac80211: tx, use dev_kfree_skb_any for beacon_get

Use dev_kfree_skb_any(); instead of dev_kfree_skb();, since ieee80211_beacon_get function might be called from atomic. (It's in a fail path.)

Cc Johannes Berg <[email protected]>
Cc Michael Wu <[email protected]>
---
 net/mac80211/tx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/mac80211/tx.c +1 -1
index 9bd9faa..81a4176 100644
@@ -1903,7 +1903,7 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw,
 			       "no rate found\n",
 			       wiphy_name(local->hw.wiphy));
 		}
-		dev_kfree_skb(skb);
+		dev_kfree_skb_any(skb);
 		skb = NULL;
 		goto out;
 	}
Signature · 1 line
1.5.6.2