[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <adb61d50-8a17-de4b-2757-5c4da1b00ff7@gmail.com>
Date: Fri, 11 Mar 2022 10:16:35 +0800
From: Jia-Ju Bai <baijiaju1990@...il.com>
To: Kalle Valo <kvalo@...nel.org>
Cc: aspriel@...il.com, franky.lin@...adcom.com,
hante.meuleman@...adcom.com, chi-hsien.lin@...ineon.com,
wright.feng@...ineon.com, chung-hsien.hsu@...ineon.com,
davem@...emloft.net, kuba@...nel.org, shawn.guo@...aro.org,
gustavoars@...nel.org, len.baker@....com,
linux-wireless@...r.kernel.org,
brcm80211-dev-list.pdl@...adcom.com,
SHA-cyfmac-dev-list@...ineon.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] brcmfmac: check the return value of devm_kzalloc() in
brcmf_of_probe()
On 2022/3/11 0:09, Kalle Valo wrote:
> Jia-Ju Bai <baijiaju1990@...il.com> wrote:
>
>> The function devm_kzalloc() in brcmf_of_probe() can fail, so its return
>> value should be checked.
>>
>> Fixes: 29e354ebeeec ("brcmfmac: Transform compatible string for FW loading")
>> Reported-by: TOTE Robot <oslab@...nghua.edu.cn>
>> Signed-off-by: Jia-Ju Bai <baijiaju1990@...il.com>
> You are not calling of_node_put() in the error path. And I don't think
> this even applies.
>
> Patch set to Changes Requested.
>
Hi Kalle,
Thanks for the reply :)
I will add of_node_put() and send a V2 patch.
Best wishes,
Jia-Ju Bai
Powered by blists - more mailing lists