Re: [PATCH] davinci_emac: Fix use after free in davinci_emac_remove

From: David Miller
Date: Wed Aug 04 2010 - 00:36:07 EST

From: Stefan Weil <weil@xxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>
> Cc: Chaithrika U S <chaithrika@xxxxxx>
> Cc: Sriramakrishnan <srk@xxxxxx>
> Cc: Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx>
> Cc: netdev@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Signed-off-by: Stefan Weil <weil@xxxxxxxxxxxxxxx>

I'll apply this, thanks.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at