rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down
authorMichael Schenk <michael.schenk@albis-elcon.com>
Thu, 26 Jan 2017 17:25:04 +0000 (11:25 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 28 Jan 2017 07:11:34 +0000 (09:11 +0200)
commit575ddce0507789bf9830d089557d2199d2f91865
tree0b6b510f7366085187ac77a91006ecd276232b62
parent64ad08605e8433b86249fef29b671812ccca65a5
rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down

In the function rtl_usb_start we pre-allocate a certain number of urbs
for RX path but they will not be freed when calling rtl_usb_stop. This
results in leaking urbs when doing ifconfig up and down. Eventually,
the system has no available urbs.

Signed-off-by: Michael Schenk <michael.schenk@albis-elcon.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/usb.c