]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8xxxu: Fix memory leak in handling rxdesc16 packets
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 18 Nov 2016 21:44:22 +0000 (16:44 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 25 Nov 2016 09:50:58 +0000 (11:50 +0200)
commit761cd8de998b11cbdb57e1ea7c11ae37fb41fa50
tree241735fc790603c3239c28a4e3a50487ffde9a9b
parent9fcaa4560974b3dc0f9e7854b4cdf5581575618e
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 the
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>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c