Explorar o código

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: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Alexey Khoroshilov %!s(int64=11) %!d(string=hai) anos
pai
achega
86b7987dd7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/isdn/gigaset/bas-gigaset.c

+ 1 - 0
drivers/isdn/gigaset/bas-gigaset.c

@@ -2400,6 +2400,7 @@ allocerr:
 error:
 	freeurbs(cs);
 	usb_set_intfdata(interface, NULL);
+	usb_put_dev(udev);
 	gigaset_freecs(cs);
 	return rc;
 }