Skip to content
Commit c8f8529e authored by Evgeny Novikov's avatar Evgeny Novikov Committed by Felipe Balbi
Browse files

usb: gadget: udc: gr_udc: fix memleak on error handling path in gr_ep_init()



gr_ep_init() does not assign the allocated request anywhere if allocation
of memory for the buffer fails. This is a memory leak fixed by the given
patch.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarEvgeny Novikov <novikov@ispras.ru>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 4a0f5a7f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment