OSDN Git Service

rsi: fix memory leak on failed URB submission
authorJohan Hovold <johan@kernel.org>
Thu, 28 Nov 2019 17:22:02 +0000 (18:22 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 18 Dec 2019 18:57:05 +0000 (20:57 +0200)
commit47768297481184932844ab01a86752ba31a38861
treef2548ec42d77aaafeb3cc67de0b83c37268bca66
parent92aafe77123ab478e5f5095878856ab0424910da
rsi: fix memory leak on failed URB submission

Make sure to free the skb on failed receive-URB submission (e.g. on
disconnect or currently also due to a missing endpoint).

Fixes: a1854fae1414 ("rsi: improve RX packet handling in USB interface")
Cc: stable <stable@vger.kernel.org> # 4.17
Cc: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_usb.c