提交 d4d1ef45 编写于 作者: T Tony Luck 提交者: Mauro Carvalho Chehab

i7core_edac: don't free on success

Signed-off-by: NTony Luck <tony.luck@intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ac1ecece
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册