linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Alexey Khoroshilov <khoroshilov@ispras.ru>,
	Anastasia Belova <abelova@astralinux.ru>,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: lvc-project@linuxtesting.org,
	Randy Dunlap <rdunlap@infradead.org>,
	linux-mips@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>,
	linux-kernel@vger.kernel.org,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	Maxime Bizon <mbizon@freebox.fr>,
	kernel test robot <lkp@intel.com>
Subject: Re: [lvc-project] [PATCH v2 2/2] MIPS: BCM63xx: Add check for NULL for clk in clk_enable
Date: Wed, 7 Dec 2022 10:23:19 -0800	[thread overview]
Message-ID: <29f1887f-bce4-2065-8e0d-2faef30e38db@gmail.com> (raw)
In-Reply-To: <2f2047d6-64ec-3602-a115-cde06855e2ab@ispras.ru>

On 12/7/22 07:53, Alexey Khoroshilov wrote:
> On 07.12.2022 17:28, Anastasia Belova wrote:
>> Errors from previous version of patch fixed.
>> Check clk for NULL before calling clk_enable_unlocked where clk
>> is dereferenced. There is such check in other implementations
>> of clk_enable.
>>
>> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>> Fixes: e7300d04bd08 ("MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs.")
>> Reported-by: kernel test robot <lkp@intel.com>
>> Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
>> ---
>>   arch/mips/bcm63xx/clk.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c
>> index 401140cf36d9..cf303d6e6693 100644
>> --- a/arch/mips/bcm63xx/clk.c
>> +++ b/arch/mips/bcm63xx/clk.c
>> @@ -362,7 +362,7 @@ static struct clk clk_periph = {
>>   int clk_enable(struct clk *clk)
>>   {
>>   	if (!clk)
>> -		return;
>> +		return 0;
>>   
>>   	mutex_lock(&clocks_mutex);
>>   	clk_enable_unlocked(clk);
>>
> 
> Keeping in mind that the first patch is not applied yet, it does not
> make sense to fix it by the second one. It is better to fix the first
> patch itself by sending the next version.

Exactly, you would to combine both patches into a single patch and send 
that as a version 3 now.
-- 
Florian


      reply	other threads:[~2022-12-07 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07 14:28 [PATCH v2 1/2] MIPS: BCM63xx: Add check for NULL for clk in clk_enable Anastasia Belova
2022-12-07 14:28 ` [PATCH v2 2/2] " Anastasia Belova
2022-12-07 15:53   ` [lvc-project] " Alexey Khoroshilov
2022-12-07 18:23     ` Florian Fainelli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29f1887f-bce4-2065-8e0d-2faef30e38db@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=abelova@astralinux.ru \
    --cc=khoroshilov@ispras.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=lvc-project@linuxtesting.org \
    --cc=mbizon@freebox.fr \
    --cc=ralf@linux-mips.org \
    --cc=rdunlap@infradead.org \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).