[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <164692756657.18489.311627042082408244.kvalo@kernel.org>
Date:   Thu, 10 Mar 2022 15:52:48 +0000 (UTC)
From:   Kalle Valo <kvalo@...nel.org>
To:     Miaoqian Lin <linmq006@...il.com>
Cc:     "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Rakesh Pillai <pillair@...eaurora.org>,
        ath10k@...ts.infradead.org, linux-wireless@...r.kernel.org,
        netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
        linmq006@...il.com
Subject: Re: [PATCH] ath10k: Fix error handling in ath10k_setup_msa_resources
Miaoqian Lin <linmq006@...il.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@...il.com>
> Reviewed-by: Jeff Johnson <quic_jjohnson@...cinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo@...cinc.com>
Patch applied to ath-next branch of ath.git, thanks.
9747a78d5f75 ath10k: Fix error handling in ath10k_setup_msa_resources
-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20220308070238.19295-1-linmq006@gmail.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists
 
