Re: [Stlinux-devel] [PATCH linux-stm 2/4] net:stmmac: fix broken stmmac_pltfr_remove.
From: David Miller <davem@davemloft.net>
Date: 2012-08-31 20:12:56
From: David Miller <davem@davemloft.net>
Date: 2012-08-31 20:12:56
From: Srinivas KANDAGATLA <redacted> Date: Thu, 30 Aug 2012 16:50:19 +0100
From: Srinivas Kandagatla <redacted> This patch fixes stmmac_pltfr_remove function, which is broken because, it is accessing plat variable via freed memory priv pointer which gets freed by free_netdev called from stmmac_dvr_remove. In short this patch caches the plat pointer in local variable before calling stmmac_dvr_remove to prevent code accessing freed memory. Without this patch any attempt to remove the stmmac device will fail as below:
...
Signed-off-by: Srinivas Kandagatla <redacted>
Applied.