Skip to content

Commit 86b7987

Browse files
khoroshilovdavem330
authored andcommitted
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 <[email protected]> Acked-by: Tilman Schmidt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 04ca697 commit 86b7987

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/isdn/gigaset/bas-gigaset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,6 +2400,7 @@ static int gigaset_probe(struct usb_interface *interface,
24002400
error:
24012401
freeurbs(cs);
24022402
usb_set_intfdata(interface, NULL);
2403+
usb_put_dev(udev);
24032404
gigaset_freecs(cs);
24042405
return rc;
24052406
}

0 commit comments

Comments
 (0)