ath11k: return -ENOMEM on allocation failure
Subsystems (2)
PATCH 1/1 ath11k: return -ENOMEM on allocation failure
Returning PTR_ERR(NULL) means success, but we should return -ENOMEM.
Fixes 1399fb87ea3e ("ath11k: register MHI controller device for QCA6390")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/net/wireless/ath/ath11k/mhi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/mhi.c +1 -1
@@ -220,7 +220,7 @@ int ath11k_mhi_register(struct ath11k_pci *ab_pci) mhi_ctrl =kzalloc (sizeof (*mhi_ctrl),GFP_KERNEL );if (!mhi_ctrl) -return PTR_ERR (mhi_ctrl); +return -ENOMEM ; ath11k_core_create_firmware_path(ab, ATH11K_AMSS_FILE, ab_pci->amss_path,
Signature · 1 line
2.28.0
Quoted 5 lines · Dan Carpenter
Returning
PTR_ERR(NULL)means success, but we should return-ENOMEM.Fixes 1399fb87ea3e ("ath11k: register MHI controller device for QCA6390")Signed-off-by Dan Carpenter <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
fd0a09097233 ath11k: return -ENOMEM on allocation failure
Signature · 3 lines
https://patchwork.kernel.org/patch/11738005/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 5 lines · Dan Carpenter
Returning
PTR_ERR(NULL)means success, but we should return-ENOMEM.Fixes 1399fb87ea3e ("ath11k: register MHI controller device for QCA6390")Signed-off-by Dan Carpenter <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
fd0a09097233 ath11k: return -ENOMEM on allocation failure
Signature · 9 lines
https://patchwork.kernel.org/patch/11738005/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k