diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-07-26 02:34:31 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-29 12:18:34 -0700 |
commit | 86b7987dd7a8acbaa54a446a73e2431da88b3ca1 (patch) | |
tree | d180b311cd000250f74239c4567bbc124a2f62c5 | |
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>
-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 c44950d3eb7..b7ae0a0dd5b 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; } |