projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c462e8c
)
driver core: fix memory leak on one error path in bus_register()
author
Jike Song
<albcamus@gmail.com>
Thu, 15 Jul 2010 09:43:54 +0000
(17:43 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 5 Aug 2010 20:53:35 +0000
(13:53 -0700)
Reported-by: huangweibing@gmail.com
Signed-off-by: Jike Song <albcamus@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/bus.c
b/drivers/base/bus.c
index 12eec3f633b13f0b6e6544a6ce895ff298d4cd84..eb1b7fa20dce5af66c6711d05e97642ce4c568a1 100644
(file)
--- a/
drivers/base/bus.c
+++ b/
drivers/base/bus.c
@@
-945,8
+945,8
@@
bus_devices_fail:
bus_remove_file(bus, &bus_attr_uevent);
bus_uevent_fail:
kset_unregister(&bus->p->subsys);
- kfree(bus->p);
out:
+ kfree(bus->p);
bus->p = NULL;
return retval;
}