Skip to content

Commit a2cdd07

Browse files
NavidemKalle Valo
authored and
Kalle Valo
committed
rtl8xxxu: prevent leaking urb
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>
1 parent ab8c31d commit a2cdd07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c

+1
Original file line numberDiff line numberDiff line change
@@ -5444,6 +5444,7 @@ static int rtl8xxxu_submit_int_urb(struct ieee80211_hw *hw)
54445444
ret = usb_submit_urb(urb, GFP_KERNEL);
54455445
if (ret) {
54465446
usb_unanchor_urb(urb);
5447+
usb_free_urb(urb);
54475448
goto error;
54485449
}
54495450

0 commit comments

Comments
 (0)