Skip to content

Commit

Permalink
mac80211: tx, use dev_kfree_skb_any for beacon_get
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and John W. Linville committed Jul 29, 2008
1 parent 9c0ab71 commit 1b02416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1b02416

Please sign in to comment.