[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100926.185457.242128057.davem@davemloft.net>
Date: Sun, 26 Sep 2010 18:54:57 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: segooon@...il.com
Cc: kernel-janitors@...r.kernel.org, grant.likely@...retlab.ca,
jpirko@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree-discuss@...ts.ozlabs.org
Subject: Re: [PATCH 1/9] ibm_newemac: use free_netdev(netdev) instead of
kfree()
From: Vasiliy Kulikov <segooon@...il.com>
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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists