提交 e9bcb9e5 编写于 作者: H Heiko Stübner 提交者: Felipe Balbi

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: NHeiko Stuebner <heiko@sntech.de>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 a1977562
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册