Tag: bc68580d41b131396054a1a04a7df4948555ed97

s390: use free_netdev(netdev) instead of kfree()

Author: Vasiliy Kulikov <segooon@gmail.com> 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 — drivers/s390/net/ctcm_main.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   …

Continue reading