]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Feb 2017 10:10:52 +0000 (11:10 +0100)
commit57d759622aa76591958f46707edebe20c284b7d2
tree75f05cc2a0e02ccf71f0cd117908092852d112f6
parent1cb3de83ab740c17dafe9148c2a5b5ac41a736cf
rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down

commit 575ddce0507789bf9830d089557d2199d2f91865 upstream.

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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtlwifi/usb.c