mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 12:19:39 +07:00
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>
This commit is contained in:
parent
35cc054d94
commit
b8d17e7d93
@ -435,6 +435,7 @@ static int ath10k_usb_hif_tx_sg(struct ath10k *ar, u8 pipe_id,
|
|||||||
ath10k_dbg(ar, ATH10K_DBG_USB_BULK,
|
ath10k_dbg(ar, ATH10K_DBG_USB_BULK,
|
||||||
"usb bulk transmit failed: %d\n", ret);
|
"usb bulk transmit failed: %d\n", ret);
|
||||||
usb_unanchor_urb(urb);
|
usb_unanchor_urb(urb);
|
||||||
|
usb_free_urb(urb);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto err_free_urb_to_pipe;
|
goto err_free_urb_to_pipe;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user