[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120831.161254.1967435351723331404.davem@davemloft.net>
Date: Fri, 31 Aug 2012 16:12:54 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: srinivas.kandagatla@...com
Cc: netdev@...r.kernel.org, peppe.cavallaro@...com
Subject: Re: [Stlinux-devel] [PATCH linux-stm 2/4] net:stmmac: fix broken
stmmac_pltfr_remove.
From: Srinivas KANDAGATLA <srinivas.kandagatla@...com>
Date: Thu, 30 Aug 2012 16:50:19 +0100
> From: Srinivas Kandagatla <srinivas.kandagatla@...com>
>
> 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 <srinivas.kandagatla@...com>
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