Commit d4d1ef45 authored by Tony Luck's avatar Tony Luck Committed by Mauro Carvalho Chehab

i7core_edac: don't free on success

Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ac1ecece
...@@ -1856,7 +1856,8 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment