Skip to content

Commit b8d17e7

Browse files
NavidemKalle Valo
authored and
Kalle Valo
committed
ath10k: fix memory leak
In ath10k_usb_hif_tx_sg the allocated urb should be released if usb_submit_urb fails. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 35cc054 commit b8d17e7

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/wireless/ath/ath10k

1 file changed

+1
-0
lines changed

Diff for: drivers/net/wireless/ath/ath10k/usb.c

+1
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ static int ath10k_usb_hif_tx_sg(struct ath10k *ar, u8 pipe_id,
435435
ath10k_dbg(ar, ATH10K_DBG_USB_BULK,
436436
"usb bulk transmit failed: %d\n", ret);
437437
usb_unanchor_urb(urb);
438+
usb_free_urb(urb);
438439
ret = -EINVAL;
439440
goto err_free_urb_to_pipe;
440441
}

0 commit comments

Comments
 (0)