mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 08:04:24 -04:00
usb: gadget: s3c-hsudc: add missing otg_put_transceiver in probe
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>
This commit is contained in:
committed by
Felipe Balbi
parent
a197756271
commit
e9bcb9e5fe
@@ -1366,6 +1366,9 @@ static int __devinit s3c_hsudc_probe(struct platform_device *pdev)
|
||||
kfree(hsudc->mem_rsrc);
|
||||
|
||||
err_res:
|
||||
if (hsudc->transceiver)
|
||||
otg_put_transceiver(hsudc->transceiver);
|
||||
|
||||
kfree(hsudc);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user