Re: [PATCH] edac/85xx: fix error handle of mpc85xx_mc_err_probe

From: Kim Phillips
Date: Thu Sep 13 2012 - 20:07:14 EST


On Thu, 13 Sep 2012 18:55:29 +0800
Shaohui Xie <Shaohui.Xie@xxxxxxxxxxxxx> wrote:

> Error handle in case of DDR ECC off is wrong, sysfs entries have not been
> created, so edac_mc_free which frees a mci instance should not be called.
> Also, free mci's memory in this case.
>
> Signed-off-by: Shaohui Xie <Shaohui.Xie@xxxxxxxxxxxxx>
> ---

this fixes a 'WARNING: at lib/kobject.c:593' on a p2020, so:

Tested-by: Kim Phillips <kim.phillips@xxxxxxxxxxxxx>

Kim

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/