wifi: ath11k: Add missing check for ioremap
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 13 Jun 2023 09:19:40 +0000 (12:19 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 15 Jun 2023 11:39:49 +0000 (14:39 +0300)
commit16e0077e14a73866e9b0f4a6bf4ad3d4a5cb0f2a
tree131de43a81b45d72b94bf149cf6fcf4a26bd9965
parent3a5d50f8eb4fcf3c69ae858020c49877e4eeaf05
wifi: ath11k: Add missing check for ioremap

Add check for ioremap() and return the error if it fails in order to
guarantee the success of ioremap(), same as in
ath11k_qmi_load_file_target_mem().

Fixes: 6ac04bdc5edb ("ath11k: Use reserved host DDR addresses from DT for PCI devices")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230608022858.27405-1-jiasheng@iscas.ac.cn
drivers/net/wireless/ath/ath11k/qmi.c