diff options
author | Evgeny Novikov <novikov@ispras.ru> | 2020-06-26 16:17:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-29 11:16:53 +0300 |
commit | 2579a988647534ae5a45a243af4e123a3ede1f6f (patch) | |
tree | 1dcd0c9ed80d6ff28755de17664057715bf360a6 /drivers/hwmon | |
parent | 70f61966ca82f68583463a1184968e5f9e6d5cc1 (diff) | |
download | linux-2579a988647534ae5a45a243af4e123a3ede1f6f.tar.xz |
usb: gadget: udc: gr_udc: fix memleak on error handling path in gr_ep_init()
[ Upstream commit c8f8529e2c4141afa2ebb487ad48e8a6ec3e8c99 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions