projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac1ecec
)
i7core_edac: don't free on success
author
Tony Luck
<tony.luck@intel.com>
Tue, 18 May 2010 13:53:25 +0000
(10:53 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 18 May 2010 17:47:31 +0000
(14:47 -0300)
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/i7core_edac.c
b/drivers/edac/i7core_edac.c
index 82acfbd017798054fe5f7cfe9995f20cfbaa75a9..3e2b5379bc05fdde5373359ab6127804ccd2f5fc 100644
(file)
--- 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,
}
fail:
- edac_mc_free(mci);
+ if (rc < 0)
+ edac_mc_free(mci);
return rc;
}