]> git.baikalelectronics.ru Git - kernel.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)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 7 Oct 2016 11:22:15 +0000 (14:22 +0300)
commit6ac3c1b7f439b1d3859fe9e1b203df958ac289a9
treea5143ab0e02e4fe798b013fc3fed4e8d4f77c02d
parent6a5e8a49b7b45205e574ad6ae69f9db3935bc217
rtl8xxxu: Fix memory leak in handling rxdesc16 packets

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>
Cc: stable@vger.kernel.org # 4.8+
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c