[PATCH 4/7] s3c-hsudc: add missing otg_put_transceiver in probe
Heiko Stübner
heiko at sntech.de
Sat Dec 17 14:27:11 EST 2011
The number of get and put calls should always be equal.
Signed-off-by: Heiko Stuebner <heiko at sntech.de>
---
drivers/usb/gadget/s3c-hsudc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c
index 7cb0850..06ca8c4 100644
--- 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;
}
--
1.7.2.3
More information about the linux-arm-kernel
mailing list