Thread (2 messages) 2 messages, 2 authors, 2010-09-27

Re: [PATCH 1/9] ibm_newemac: use free_netdev(netdev) instead of kfree()

From: David Miller <hidden>
Date: 2010-09-27 01:54:38
Also in: kernel-janitors, linux-devicetree, lkml

From: Vasiliy Kulikov <redacted>
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help