ath11k: fix error return code in ath11k_dp_alloc()
Subsystems (2)
PATCH 1/1 ath11k: fix error return code in ath11k_dp_alloc()
Fix to return negative error code -ENOMEM from the error handling case instead of 0, as done elsewhere in this function.
Fixes d0998eb84ed3 ("ath11k: optimise ath11k_dp_tx_completion_handler")
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/net/wireless/ath/ath11k/dp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp.c +3 -1
@@ -909,8 +909,10 @@ int ath11k_dp_alloc(struct ath11k_base *ab) dp->tx_ring[i].tx_status_head =0 ; dp->tx_ring[i].tx_status_tail =DP_TX_COMP_RING_SIZE -1 ; dp->tx_ring[i].tx_status =kmalloc (size,GFP_KERNEL ); -if (!dp->tx_ring[i].tx_status) +if (!dp->tx_ring[i].tx_status) { + ret = -ENOMEM ; goto fail_cmn_srng_cleanup; + } }for (i =0 ; i <HAL_DSCP_TID_MAP_TBL_NUM_ENTRIES_MAX ; i++)
Quoted 6 lines · Wei Yongjun
Fix to return negative error code
-ENOMEMfrom the error handling case instead of 0, as done elsewhere in this function.Fixes d0998eb84ed3 ("ath11k: optimise ath11k_dp_tx_completion_handler")Signed-off-by Wei Yongjun <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
f76f750aeea4 ath11k: fix error return code in ath11k_dp_alloc()
Signature · 3 lines
https://patchwork.kernel.org/patch/11511849/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 6 lines · Wei Yongjun
Fix to return negative error code
-ENOMEMfrom the error handling case instead of 0, as done elsewhere in this function.Fixes d0998eb84ed3 ("ath11k: optimise ath11k_dp_tx_completion_handler")Signed-off-by Wei Yongjun <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
f76f750aeea4 ath11k: fix error return code in ath11k_dp_alloc()
Signature · 8 lines
https://patchwork.kernel.org/patch/11511849/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k