]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Fix a couple NULL vs IS_ERR() bugs
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 10 Apr 2025 16:26:16 +0000 (19:26 +0300)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Sat, 12 Apr 2025 04:19:29 +0000 (21:19 -0700)
commit4703416d0fb993f7505025667f868f6981a5f7ab
treed95d77fb935d925d8d6bc6d669870361aeff430f
parentd118047f82408201eb433a7ff7d505e72515d7e0
wifi: ath12k: Fix a couple NULL vs IS_ERR() bugs

The devm_memremap() function returns error pointers on error and the
ioremap() function returns NULL on error.  The error checking here got
those flipped around.

Fixes: c01d5cc9b9fe ("wifi: ath12k: Power up userPD")
Fixes: 6cee30f0da75 ("wifi: ath12k: add AHB driver support for IPQ5332")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/937abc74-9648-4c05-a2c3-8db408b3ed9e@stanley.mountain
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/ahb.c