]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtlwifi: fix memory leak for USB device
authorPeter Wu <peter@lekensteyn.nl>
Mon, 7 Dec 2015 00:07:31 +0000 (01:07 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:39 +0000 (15:43 -0700)
commitdc2e5129824429938ad9ca3192fb571dff5d1f94
tree1beb944390988439b9eebf4ecdd93e24af57418c
parent5761e152d3e1a8f431335e56181a972268e142f4
rtlwifi: fix memory leak for USB device

Orabug: 23330591

[ Upstream commit 17bc55864f81dd730d05f09b1641312a7990d636 ]

Free skb for received frames with a wrong checksum. This can happen
pretty rapidly, exhausting all memory.

This fixes a memleak (detected with kmemleak). Originally found while
using monitor mode, but it also appears during managed mode (once the
link is up).

Cc: stable@vger.kernel.org
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
ACKed-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 76e8046ae4f3c7abd9e4f8ab69000609e554eb77)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/wireless/rtlwifi/usb.c