]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/net/wireless/rtlwifi/usb.c
rtlwifi: Don't leak on error in _rtl_usb_receive()
[~shefty/rdma-dev.git] / drivers / net / wireless / rtlwifi / usb.c
index a3312b7c49073ddf6ddf42bc6e2d3f3753b36f6d..f2ecdeb3a90d441ee809af029a1db1c8dab80f48 100644 (file)
@@ -639,6 +639,7 @@ static int _rtl_usb_receive(struct ieee80211_hw *hw)
                        RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG,
                                 "Failed to prep_rx_urb!!\n");
                        err = PTR_ERR(skb);
+                       usb_free_urb(urb);
                        goto err_out;
                }