[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100803.213616.48488045.davem@davemloft.net>
Date: Tue, 03 Aug 2010 21:36:16 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: weil@...l.berlios.de
Cc: netdev@...r.kernel.org, chaithrika@...com, srk@...com,
khilman@...prootsystems.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] davinci_emac: Fix use after free in davinci_emac_remove
From: Stefan Weil <weil@...l.berlios.de>
Date: Tue, 3 Aug 2010 20:53:45 +0200
> free_netdev finally calls kfree which makes the contents
> of ndev and priv (private data contained in ndev) invalid.
>
> So iounmap should be called before free_netdev.
>
> Cc: David S. Miller <davem@...emloft.net>
> Cc: Chaithrika U S <chaithrika@...com>
> Cc: Sriramakrishnan <srk@...com>
> Cc: Kevin Hilman <khilman@...prootsystems.com>
> Cc: netdev@...r.kernel.org
> Cc: linux-kernel@...r.kernel.org
> Signed-off-by: Stefan Weil <weil@...l.berlios.de>
I'll apply this, thanks.
--
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