]> git.ipfire.org Git - people/arne_f/kernel.git/commit
usb: gadget: udc: gr_udc: fix memleak on error handling path in gr_ep_init()
authorEvgeny Novikov <novikov@ispras.ru>
Fri, 26 Jun 2020 13:17:47 +0000 (16:17 +0300)
committerFelipe Balbi <balbi@kernel.org>
Thu, 9 Jul 2020 07:13:07 +0000 (10:13 +0300)
commitc8f8529e2c4141afa2ebb487ad48e8a6ec3e8c99
treefa43a52a71b65aacbdbe98a39d7b7bcc356d780c
parent4a0f5a7f2bab80348ca1e4b996648a20746a2407
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: Evgeny Novikov <novikov@ispras.ru>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/gr_udc.c