usb: gadget: udc-core: prevent a memory leak
udc-core would leak 'udc' memory in some error cases. Fix it by kfree()ing udc on error path. Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NFelipe Balbi <balbi@ti.com>
Showing
想要评论请 注册 或 登录