]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtl8xxxu: Fix memory leak in handling rxdesc16 packets
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 29 Sep 2016 19:40:54 +0000 (15:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 15:38:52 +0000 (16:38 +0100)
commitece1b51ae1c40ae576676204ad86e07c7f747ba2
tree903db6b5f5829bd127b0b355324c81254ff99b3e
parent5a805cd29284a4fe36add86965754fc1691db1b7
rtl8xxxu: Fix memory leak in handling rxdesc16 packets

commit 1e54134ccad00f76ddf00f3e77db3dc8fdefbb47 upstream.

A device running without RX package aggregation could return more data
in the USB packet than the actual network packet. In this case we
could would clone the skb but then determine that that there was no
packet to handle and exit without freeing the cloned skb first.

This has so far only been observed with 8188eu devices, but could
affect others.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c