commit | d4d1ef4515cca074d5bbe1c63420822d6b20fe63 | [log] [tgz] |
---|---|---|
author | Tony Luck <tony.luck@intel.com> | Tue May 18 10:53:25 2010 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Tue May 18 14:47:31 2010 -0300 |
tree | 86012cc372641a92173b07dd6eea2998f373d3fd | |
parent | ac1ececea995fd77c8da6a1299674f22991cecaa [diff] |
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>
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index 82acfbd..3e2b537 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c
@@ -1856,7 +1856,8 @@ } fail: - edac_mc_free(mci); + if (rc < 0) + edac_mc_free(mci); return rc; }