staging: r8188eu: Fix skb leak in usb_read_port_complete()
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 7 Oct 2013 15:10:55 +0000 (10:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Oct 2013 01:59:55 +0000 (18:59 -0700)
commit5f8c609eb0ad5430d99ca59ac503ef457fb9a248
tree3b80bc32674910242923a8812d70abcc1912b350
parent95a7a86ad85e14ca3364a6007be280f3a6f8a7a6
staging: r8188eu: Fix skb leak in usb_read_port_complete()

In the completion routine for a usb_fill_bulk_urb() call, an skb is
leaked whenever the status of the USB transaction is not zero. A call
to skb_put() is needed to fix the problem.

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