aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-07-14 06:43:23 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-07-29 16:55:07 -0400
commit1b0241656b658522a15e7aad570cb8ea6b255a2a (patch)
tree295fa561fe5cae3d50fece17f7d7018fe61983f1 /net/mac80211/tx.c
parent9c0ab712c7e40b61063431cae74a3e763535a4e7 (diff)
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 <jirislaby@gmail.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 1 insertions, 1 deletions
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,
1931 "no rate found\n", 1931 "no rate found\n",
1932 wiphy_name(local->hw.wiphy)); 1932 wiphy_name(local->hw.wiphy));
1933 } 1933 }
1934 dev_kfree_skb(skb); 1934 dev_kfree_skb_any(skb);
1935 skb = NULL; 1935 skb = NULL;
1936 goto out; 1936 goto out;
1937 } 1937 }