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:
a197756
)
usb: gadget: s3c-hsudc: add missing otg_put_transceiver in probe
author
Heiko Stübner
<heiko@sntech.de>
Mon, 19 Dec 2011 18:40:28 +0000
(19:40 +0100)
committer
Felipe Balbi
<balbi@ti.com>
Wed, 21 Dec 2011 11:24:38 +0000
(13:24 +0200)
The number of get and put calls should always be equal.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsudc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/s3c-hsudc.c
b/drivers/usb/gadget/s3c-hsudc.c
index fdf7774eacb08d425c9747598192f1b875a0c4fd..a6a789a050910cf54dec628f99564db71597d294 100644
(file)
--- a/
drivers/usb/gadget/s3c-hsudc.c
+++ b/
drivers/usb/gadget/s3c-hsudc.c
@@
-1366,6
+1366,9
@@
err_remap:
kfree(hsudc->mem_rsrc);
err_res:
+ if (hsudc->transceiver)
+ otg_put_transceiver(hsudc->transceiver);
+
kfree(hsudc);
return ret;
}