Re: [PATCH v2 1/3] edac_mc: fix kfree calls in the error path

2012-09-14 Thread Shaun Ruffell
On Fri, Sep 14, 2012 at 12:58:16PM -0500, Shaun Ruffell wrote: > From: Fengguang Wu > > From: Fengguang Wu Darn it. If you push this through, mind fixing the above? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

[PATCH v2 1/3] edac_mc: fix kfree calls in the error path

2012-09-14 Thread Shaun Ruffell
From: Fengguang Wu From: Fengguang Wu We need to free up memory in this order: free csrows[i]->channels[j] free csrows[i]->channels free csrows[i] free csrows Signed-off-by: Fengguang Wu --- drivers/edac/edac_mc.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) d