projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
EDAC: Fix memleak in module init error path
[linux-2.6-microblaze.git]
/
drivers
/
edac
/
edac_mc_sysfs.c
diff --git
a/drivers/edac/edac_mc_sysfs.c
b/drivers/edac/edac_mc_sysfs.c
index
7481955
..
20374b8
100644
(file)
--- a/
drivers/edac/edac_mc_sysfs.c
+++ b/
drivers/edac/edac_mc_sysfs.c
@@
-1075,14
+1075,14
@@
int __init edac_mc_sysfs_init(void)
err = device_add(mci_pdev);
if (err < 0)
- goto out_
dev_fre
e;
+ goto out_
put_devic
e;
edac_dbg(0, "device %s created\n", dev_name(mci_pdev));
return 0;
- out_
dev_fre
e:
-
kfre
e(mci_pdev);
+ out_
put_devic
e:
+
put_devic
e(mci_pdev);
out:
return err;
}