From: Daniel Drake Date: Fri, 27 Jul 2007 13:43:21 +0000 (+0200) Subject: [PATCH] mac80211: missing dev_put in ieee80211_master_start_xmit X-Git-Tag: v2.6.23-rc3~70^2~4^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e7088de6ce5a64d9bb7b11eba4ee98ca5b654e8;p=linux-2.6 [PATCH] mac80211: missing dev_put in ieee80211_master_start_xmit Fixes an unlikely reference leak condition. Signed-off-by: Daniel Drake Signed-off-by: Jiri Benc Signed-off-by: John W. Linville --- diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index c944b17d0f..8ec5ed192b 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c @@ -1650,6 +1650,7 @@ static int ieee80211_master_start_xmit(struct sk_buff *skb, if (skb_headroom(skb) < headroom) { if (pskb_expand_head(skb, headroom, 0, GFP_ATOMIC)) { dev_kfree_skb(skb); + dev_put(odev); return 0; } }