[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100926.185529.200365761.davem@davemloft.net>
Date: Sun, 26 Sep 2010 18:55:29 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: segooon@...il.com
Cc: kernel-janitors@...r.kernel.org, eric.dumazet@...il.com,
u.kleine-koenig@...gutronix.de, julia@...u.dk, tj@...nel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/9] sgiseeq: use free_netdev(netdev) instead of kfree()
From: Vasiliy Kulikov <segooon@...il.com>
Date: Sun, 26 Sep 2010 13:58:06 +0400
> Freeing netdev without free_netdev() leads to net, tx leaks.
> I might lead to dereferencing freed pointer.
>
> The semantic match that finds this problem is as follows:
> (http://coccinelle.lip6.fr/)
>
> @@
> struct net_device* dev;
> @@
>
> -kfree(dev)
> +free_netdev(dev)
Applied.
--
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