[PATCH] ath10k: Fix error handling in ath10k_setup_msa_resources

Kalle Valo kvalo at kernel.org
Thu Mar 10 07:52:48 PST 2022

Miaoqian Lin <linmq006 at gmail.com> wrote:

> 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: 727fec790ead ("ath10k: Setup the msa resources before qmi init")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>
> Reviewed-by: Jeff Johnson <quic_jjohnson at quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo at quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

9747a78d5f75 ath10k: Fix error handling in ath10k_setup_msa_resources



More information about the ath10k mailing list