mirror of
https://github.com/proski/madwifi
synced 2024-11-24 23:40:00 +03:00
fix a double-free bug
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3071 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
6cef2b96e6
commit
806f7b46e7
@ -708,7 +708,6 @@ ieee80211_skbhdr_adjust(struct ieee80211vap *vap, int hdrsize,
|
||||
n = need_headroom - skb_headroom(skb);
|
||||
if (pskb_expand_head(skb, n,
|
||||
need_tailroom - skb_tailroom(skb), GFP_ATOMIC)) {
|
||||
ieee80211_dev_kfree_skb(&skb);
|
||||
IEEE80211_DPRINTF(vap, IEEE80211_MSG_OUTPUT,
|
||||
"%s: cannot expand storage (tail)\n", __func__);
|
||||
vap->iv_stats.is_tx_nobuf++;
|
||||
|
Loading…
Reference in New Issue
Block a user