diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-07-26 00:34:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-29 21:18:34 +0200 |
commit | 86b7987dd7a8acbaa54a446a73e2431da88b3ca1 (patch) | |
tree | d180b311cd000250f74239c4567bbc124a2f62c5 /drivers/isdn/gigaset | |
parent | ip: make IP identifiers less predictable (diff) | |
download | linux-86b7987dd7a8acbaa54a446a73e2431da88b3ca1.tar.xz linux-86b7987dd7a8acbaa54a446a73e2431da88b3ca1.zip |
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/gigaset')
-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: error: freeurbs(cs); usb_set_intfdata(interface, NULL); + usb_put_dev(udev); gigaset_freecs(cs); return rc; } |