Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86b7987d authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by David S. Miller
Browse files

isdn/bas_gigaset: fix a leak on failure path in gigaset_probe()



There is a lack of usb_put_dev(udev) on failure path in gigaset_probe().

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

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: default avatarTilman Schmidt <tilman@imap.cc>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 04ca6973
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2400,6 +2400,7 @@ static int gigaset_probe(struct usb_interface *interface,
error:
	freeurbs(cs);
	usb_set_intfdata(interface, NULL);
	usb_put_dev(udev);
	gigaset_freecs(cs);
	return rc;
}