diff options
author | Dave Jiang <[email protected]> | 2009-04-21 12:24:56 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-04-21 13:41:51 -0700 |
commit | 55e5750b3e979bac853c0809ad0ef75b7cebd18c (patch) | |
tree | 6cb6d0576a557b7559bf7230d692609de1763bbe | |
parent | b298cecb3deddf76d60022473a57f1cb776cbdcd (diff) |
edac: ppc mpc85xx fix mc err detect
Error found by Jeff Haran.
The error detect register is 0s when no errors are detected. The check
code is incorrect, so reverse check sense.
Reported-by: Jeff Haran <[email protected]>
Signed-off-by: Dave Jiang <[email protected]>
Signed-off-by: Doug Thompson <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Acked-by: Kumar Gala <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | drivers/edac/mpc85xx_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index 4637a4a757df..7c8c2d72916f 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c @@ -674,7 +674,7 @@ static void mpc85xx_mc_check(struct mem_ctl_info *mci) int row_index; err_detect = in_be32(pdata->mc_vbase + MPC85XX_MC_ERR_DETECT); - if (err_detect) + if (!err_detect) return; mpc85xx_mc_printk(mci, KERN_ERR, "Err Detect Register: %#8.8x\n", |