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

usb: gadget: net2280: fix memory leak on probe error handling paths



Driver does not release memory for device on error handling paths in
net2280_probe() when gadget_release() is not registered yet.

The patch fixes the bug like in other similar drivers.

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 b2aeb6da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment