[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100926.185615.212684376.davem@davemloft.net>
Date: Sun, 26 Sep 2010 18:56:15 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: segooon@...il.com
Cc: kernel-janitors@...r.kernel.org, ursula.braun@...ibm.com,
blaschka@...ux.vnet.ibm.com, linux390@...ibm.com,
schwidefsky@...ibm.com, heiko.carstens@...ibm.com, julia@...u.dk,
linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/9] s390: use free_netdev(netdev) instead of kfree()
From: Vasiliy Kulikov <segooon@...il.com>
Date: Sun, 26 Sep 2010 13:58:09 +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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists