]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8712u: Fix leak of skb
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 4 Jun 2016 01:17:36 +0000 (20:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:28:49 +0000 (18:28 +0200)
commit3949b92d8e063b9f5d0426e72d4a4ef4614174b1
tree13f3ec387b5ca9b260c250a22f0956a8601d1b1b
parent0cc1ab56f4b886a31a02d34152682f3d2a20f844
staging: r8712u: Fix leak of skb

There are two types of messages queued for RX. The major type, which does
I/O on the device, was being handled properly. The skbs that communicated
with the firmware were being leaked.

While rewriting the code that sets up the skb, it was possible to remove
the private variable indicating that the old skb could be reused.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/recv_linux.c
drivers/staging/rtl8712/rtl8712_recv.h
drivers/staging/rtl8712/usb_ops_linux.c