rtlwifi: Don't leak on error in _rtl_usb_receive()
authorJesper Juhl <jj@chaosbits.net>
Wed, 26 Dec 2012 20:51:12 +0000 (21:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Jan 2013 19:38:29 +0000 (14:38 -0500)
commit1474a89838c44ef2c9b95401cf3a9ff5ad05d5fd
tree6539c0df300ee24e7f2f324955a1384660a6deda
parenta796a1dd5da9645ad77aa687d1a890ecd63ab5a6
rtlwifi: Don't leak on error in _rtl_usb_receive()

We fail to release 'urb' if '_rtl_prep_rx_urb()' fails in
_rtl_usb_receive().
This patch should take care of the leak.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/usb.c