]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath10k: Fix qmi init error handling
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Wed, 13 Nov 2019 15:40:16 +0000 (07:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:22 +0000 (08:36 +0100)
commit281ebbcdee49c5c9331aac157718b875cce210f0
treec651ef92f7f44b30d90113c2f0344c73657d545a
parent726196728c2c181d8419d372582a5b40c2587fb6
ath10k: Fix qmi init error handling

[ Upstream commit f8a595a87e93a33a10879f4b856be818d2f53c84 ]

When ath10k_qmi_init() fails, the error handling does not free the irq
resources, which causes an issue if we EPROBE_DEFER as we'll attempt to
(re-)register irqs which are already registered.

Fix this by doing a power off since we just powered on the hardware, and
freeing the irqs as error handling.

Fixes: ba94c753ccb4 ("ath10k: add QMI message handshake for wcn3990 client")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/snoc.c