projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ad03d
)
usb: core: endpoint: Fix error path
author
Rahul Ruikar
<rahul.ruikar@gmail.com>
Thu, 7 Oct 2010 04:01:12 +0000
(09:31 +0530)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 22 Oct 2010 17:22:06 +0000
(10:22 -0700)
In function usb_create_ep_devs()
call put_device() when device_register() fails.
Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/endpoint.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/endpoint.c
b/drivers/usb/core/endpoint.c
index 3788e738e265058ec164368a06fbf6897305aa51..9da250563027630330d92831ac0adbe428feb1cb 100644
(file)
--- a/
drivers/usb/core/endpoint.c
+++ b/
drivers/usb/core/endpoint.c
@@
-202,7
+202,7
@@
int usb_create_ep_devs(struct device *parent,
return retval;
error_register:
-
kfree(ep_
dev);
+
put_device(&ep_dev->
dev);
exit:
return retval;
}