mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
1cb5e9ee03
commit
c5dbc220b3
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue