rtl8xxxu: prevent leaking urb
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Fri, 20 Sep 2019 03:00:41 +0000 (22:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 19:08:37 +0000 (20:08 +0100)
commite380d974731502d24e0353df36a883fe232c866b
tree9af9d5508abe0fc794c89470fcb728b311a21df9
parent448fe0b67c68d36cb45c09444c6b8298130d4c5e
rtl8xxxu: prevent leaking urb

commit a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c upstream.

In rtl8xxxu_submit_int_urb if usb_submit_urb fails the allocated urb
should be released.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c