[PATCH 1/9] ibm_newemac: use free_netdev(netdev) instead of kfree()
David Miller
davem at davemloft.net
Mon Sep 27 11:54:57 EST 2010
From: Vasiliy Kulikov <segooon at gmail.com>
Date: Sun, 26 Sep 2010 13:58:00 +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.
More information about the devicetree-discuss
mailing list