i7core_edac: don't free on success
Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ac1ececea9
commit
d4d1ef4515
|
@ -1856,7 +1856,8 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
edac_mc_free(mci);
|
if (rc < 0)
|
||||||
|
edac_mc_free(mci);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue