commit | 8d879de89807d82bc4cc3e9d73609b874fa9458c | [log] [tgz] |
---|---|---|
author | Kulikov Vasiliy <segooon@gmail.com> | Sat Sep 25 23:58:06 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Sep 26 18:54:34 2010 -0700 |
tree | 4c654cab6a0dc46f4e5f7e0330bc22c4747acbc2 | |
parent | 22138d307329e1968fc698821095b87c2fd5de12 [diff] |
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>