summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2007-07-27 15:43:21 +0200
committerJohn W. Linville <linville@tuxdriver.com>2007-08-06 15:37:56 -0400
commit0e7088de6ce5a64d9bb7b11eba4ee98ca5b654e8 (patch)
tree0eecc6c03c133cb64055154e52e9cf1f3f73ac62 /net
parentd4ac2477fad0f2680e84ec12e387ce67682c5c13 (diff)
downloadlinux-0e7088de6ce5a64d9bb7b11eba4ee98ca5b654e8.tar.bz2
[PATCH] mac80211: missing dev_put in ieee80211_master_start_xmit
Fixes an unlikely reference leak condition. Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/ieee80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index c944b17d0fc0..8ec5ed192b5d 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;
}
}