]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath11k: fix error code in ath11k_qmi_assign_target_mem_chunk()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Jan 2022 08:15:11 +0000 (10:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:55 +0000 (13:57 +0200)
commitdd817263ac5df907eb83d28d8a14a000ce52aa14
treeb9a389c1f2a9a8be11bc1e7be0af8edcb7d15ffd
parent2c14ace87557834a3890a6d614910748fdc858b8
ath11k: fix error code in ath11k_qmi_assign_target_mem_chunk()

[ Upstream commit c9b41832dc080fa59bad597de94865b3ea2d5bab ]

The "ret" vairable is not set at this point.  It could be uninitialized
or zero.  The correct thing to return is -ENODEV.

Fixes: 6ac04bdc5edb ("ath11k: Use reserved host DDR addresses from DT for PCI devices")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220111071445.GA11243@kili
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath11k/qmi.c