i7core_edac: don't free on success

Signed-off-by: Tony Luck <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Tony Luck 2010-05-18 10:53:25 -03:00 • committed by Mauro Carvalho Chehab
commit d4d1ef4515

View file

@ -1856,7 +1856,8 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev,
}
fail:
edac_mc_free(mci);
if (rc < 0)
edac_mc_free(mci);
return rc;
}