From: Stefan Weil Date: Tue, 3 Aug 2010 08:53:45 +0000 (+0000) Subject: davinci_emac: Fix use after free in davinci_emac_remove X-Git-Tag: v2.6.36-rc1~305^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1bc0d56b446104a3a728925b3a7afbef64afa7;p=pandora-kernel.git davinci_emac: Fix use after free in davinci_emac_remove 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 Cc: Chaithrika U S Cc: Sriramakrishnan Cc: Kevin Hilman Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Stefan Weil Signed-off-by: David S. Miller --- Reading git-diff-tree failed