[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJmB2rBTHCTcetstpZkNkxX4CAxYF3Sd=Vrg3dmTMDzFQK0vqg@mail.gmail.com>
Date: Wed, 16 Nov 2011 11:42:07 +0300
From: Alexander Smirnov <alex.bluesman.smirnov@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
Sergey Lapin <slapin@...fans.org>,
"David S. Miller" <davem@...emloft.net>,
linux-zigbee-devel@...ts.sourceforge.net, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch -next v2] 6LoWPAN: double free in lowpan_fragment_xmit()
2011/11/16 Dan Carpenter <dan.carpenter@...cle.com>:
> dev_queue_xmit() consumes its own skb, so the call to dev_kfree_skb()
> in lowpan_fragment_xmit() is a double free.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
> ---
> v2: fixed commit message.
>
> diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
> index 602f318..e4ecc1e 100644
> --- a/net/ieee802154/6lowpan.c
> +++ b/net/ieee802154/6lowpan.c
> @@ -980,9 +980,6 @@ lowpan_fragment_xmit(struct sk_buff *skb, u8 *head,
>
> ret = dev_queue_xmit(frag);
>
> - if (ret < 0)
> - dev_kfree_skb(frag);
> -
> return ret;
> }
>
>
>
Acked-by: Alexander Smirnov <alex.bluesman.smirnov@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists