]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] mac80211: missing dev_put in ieee80211_master_start_xmit
authorDaniel Drake <dsd@gentoo.org>
Fri, 27 Jul 2007 13:43:21 +0000 (15:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Aug 2007 19:37:56 +0000 (15:37 -0400)
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>
net/mac80211/ieee80211.c

index c944b17d0fc0c0c51e22a943774f8b6e3779af02..8ec5ed192b5d889f3211c6a955e656442ebd4fd9 100644 (file)
@@ -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;
                }
        }