diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2016-06-03 20:17:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-21 18:28:49 +0200 |
commit | 78ece0b94518816f08f4e60fae62d078aa4cb63d (patch) | |
tree | 13f3ec387b5ca9b260c250a22f0956a8601d1b1b /drivers/staging/rtl8712/rtl8712_recv.h | |
parent | 74a3b060bc29851d7caf42b9c8c3c1129fd50553 (diff) | |
download | op-kernel-dev-78ece0b94518816f08f4e60fae62d078aa4cb63d.zip op-kernel-dev-78ece0b94518816f08f4e60fae62d078aa4cb63d.tar.gz |
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>
Diffstat (limited to 'drivers/staging/rtl8712/rtl8712_recv.h')
-rw-r--r-- | drivers/staging/rtl8712/rtl8712_recv.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_recv.h b/drivers/staging/rtl8712/rtl8712_recv.h index fd9e3fc..925ec74 100644 --- a/drivers/staging/rtl8712/rtl8712_recv.h +++ b/drivers/staging/rtl8712/rtl8712_recv.h @@ -103,7 +103,6 @@ struct recv_buf { struct _adapter *adapter; struct urb *purb; _pkt *pskb; - u8 reuse; u8 irp_pending; u32 transfer_len; uint len; |