staging: r8712u: Fix leak of skb
commit78ece0b94518816f08f4e60fae62d078aa4cb63d
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 4 Jun 2016 01:17:36 +0000 (3 20:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:28:49 +0000 (21 18:28 +0200)
tree13f3ec387b5ca9b260c250a22f0956a8601d1b1b
parent74a3b060bc29851d7caf42b9c8c3c1129fd50553
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