]> git.baikalelectronics.ru Git - kernel.git/commit
sgiseeq: use free_netdev(netdev) instead of kfree()
authorKulikov Vasiliy <segooon@gmail.com>
Sat, 25 Sep 2010 23:58:06 +0000 (23:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 01:54:34 +0000 (18:54 -0700)
commitd4509a24900bdf2467a8ef4415c54d58e7f5b858
tree4c654cab6a0dc46f4e5f7e0330bc22c4747acbc2
parentc47d6d1a805f46907745d6329799c7ace958c417
sgiseeq: use free_netdev(netdev) instead of kfree()

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)

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sgiseeq.c