]> git.ipfire.org Git - people/arne_f/kernel.git/commit
rsi: fix memory leak on failed URB submission
authorJohan Hovold <johan@kernel.org>
Thu, 28 Nov 2019 17:22:02 +0000 (18:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2020 09:32:59 +0000 (09:32 +0000)
commit7c3da77f252f9c67211c959653d9a2e6ca26f646
treede3c3a330da49ff9d971454d0e0fa60ec122792e
parenta5403dc796abb3267e0e0bedb11f77a407813d91
rsi: fix memory leak on failed URB submission

commit 47768297481184932844ab01a86752ba31a38861 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rsi/rsi_91x_usb.c