# Re: \[PATCH\] edac/85xx: fix error handle of mpc85xx\_mc\_err\_probe

- From: Shaun Ruffell \<hidden\>
- Date: 2012-09-14 18:28:54 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2012/09/3923725
- Thread: https://ratatoskr.run/linuxppc-dev/2012/09/3922781/t.md

```text
On Thu, Sep 13, 2012 at 06:55:29PM +0800, Shaohui Xie 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.

Jus FYI: I ran into the same error in edac_mc_free() which I
resolved in a slightly different way in some patches I sent
previously. [1]

[1] https://lkml.org/lkml/2012/9/14/475 

Cheers,
Shaun
```
