diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-07-25 18:34:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-29 15:18:34 -0400 |
commit | 86b7987dd7a8acbaa54a446a73e2431da88b3ca1 (patch) | |
tree | d180b311cd000250f74239c4567bbc124a2f62c5 /drivers/isdn | |
parent | 04ca6973f7c1a0d8537f2d9906a0cf8e69886d75 (diff) |
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>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/gigaset/bas-gigaset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/isdn/gigaset/bas-gigaset.c b/drivers/isdn/gigaset/bas-gigaset.c index c44950d3eb7b..b7ae0a0dd5b6 100644 --- a/drivers/isdn/gigaset/bas-gigaset.c +++ b/drivers/isdn/gigaset/bas-gigaset.c | |||
@@ -2400,6 +2400,7 @@ allocerr: | |||
2400 | error: | 2400 | error: |
2401 | freeurbs(cs); | 2401 | freeurbs(cs); |
2402 | usb_set_intfdata(interface, NULL); | 2402 | usb_set_intfdata(interface, NULL); |
2403 | usb_put_dev(udev); | ||
2403 | gigaset_freecs(cs); | 2404 | gigaset_freecs(cs); |
2404 | return rc; | 2405 | return rc; |
2405 | } | 2406 | } |