Files
linux/drivers/net/wireless/ath
Miaoqian Lin 32939187f2 ath10k: Fix error handling in ath10k_setup_msa_resources
[ Upstream commit 9747a78d5f ]

The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.

This function only calls of_node_put() in the regular path.
And it will cause refcount leak in error path.

Fixes: 727fec790e ("ath10k: Setup the msa resources before qmi init")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220308070238.19295-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:39 +02:00
..
2021-09-24 14:08:10 +03:00
2022-04-08 14:23:26 +02:00
2021-06-15 17:01:24 +03:00
2019-04-29 17:55:53 +03:00