mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mac80211: tx, use dev_kfree_skb_any for beacon_get
@ 2008-07-14 10:43 Jiri Slaby
  0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2008-07-14 10:43 UTC (permalink / raw)
  To: johannes; +Cc: linux-kernel, linux-wireless, Jiri Slaby, Michael Wu

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>
---
 net/mac80211/tx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 9bd9faa..81a4176 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -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;
 	}
-- 
1.5.6.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-14 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-14 10:43 [PATCH] mac80211: tx, use dev_kfree_skb_any for beacon_get Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®