mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-25 00:57:32 +02:00
524704e677
Synchronize the ath11k backports with the current ath-next tree. This backports several memory leak issues, PCI IRQ fixup, peer add locking fix as well as IPQ5018 support, though IPQ5018 support is unused for now. This allows to easily backport further fixes as cherry picking them has started requiring manual conflict resolution. Signed-off-by: Robert Marko <robimarko@gmail.com>
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 342fcde9d91460f01f65707e16368a1571271a3a Mon Sep 17 00:00:00 2001
|
|
From: Yang Yingliang <yangyingliang@huawei.com>
|
|
Date: Fri, 17 Feb 2023 11:00:31 +0800
|
|
Subject: [PATCH] wifi: ath11k: fix return value check in ath11k_ahb_probe()
|
|
|
|
ioremap() returns NULL pointer not PTR_ERR() when it fails,
|
|
so replace the IS_ERR() check with NULL pointer check.
|
|
|
|
Fixes: b42b3678c91f ("wifi: ath11k: remap ce register space for IPQ5018")
|
|
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
|
|
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
|
|
Link: https://lore.kernel.org/r/20230217030031.4021289-1-yangyingliang@huawei.com
|
|
---
|
|
drivers/net/wireless/ath/ath11k/ahb.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/ahb.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
|
|
@@ -1174,7 +1174,7 @@ static int ath11k_ahb_probe(struct platf
|
|
* to a new space for accessing them.
|
|
*/
|
|
ab->mem_ce = ioremap(ce_remap->base, ce_remap->size);
|
|
- if (IS_ERR(ab->mem_ce)) {
|
|
+ if (!ab->mem_ce) {
|
|
dev_err(&pdev->dev, "ce ioremap error\n");
|
|
ret = -ENOMEM;
|
|
goto err_core_free;
|