Re: [PATCH 2/9] rionet: use free_netdev(netdev) instead of kfree()
From: David Miller
Date: Sun Sep 26 2010 - 21:54:53 EST
From: Vasiliy Kulikov <segooon@xxxxxxxxx>
Date: Sun, 26 Sep 2010 13:58:03 +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 linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/