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:
nbd 2007-12-22 17:16:06 +00:00
parent 6cef2b96e6
commit 806f7b46e7

View File

@ -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++;