From: Jiri Slaby Date: Mon, 14 Jul 2008 10:43:23 +0000 (+0200) Subject: mac80211: tx, use dev_kfree_skb_any for beacon_get X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1b0241656b658522a15e7aad570cb8ea6b255a2a;p=openwrt%2Fstaging%2Fblogic.git 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.) Signed-off-by: Jiri Slaby Cc: Johannes Berg Cc: Michael Wu Signed-off-by: John W. Linville --- diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 0fbadd8b983c..7e99d1615192 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1931,7 +1931,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; }