diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/edac/i7core_edac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index 82acfbd01779..3e2b5379bc05 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c | |||
@@ -1856,7 +1856,8 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev, | |||
1856 | } | 1856 | } |
1857 | 1857 | ||
1858 | fail: | 1858 | fail: |
1859 | edac_mc_free(mci); | 1859 | if (rc < 0) |
1860 | edac_mc_free(mci); | ||
1860 | return rc; | 1861 | return rc; |
1861 | } | 1862 | } |
1862 | 1863 | ||