From: John Garry <john.garry@huawei.com>
To: YE Chengfeng <cyeaa@connect.ust.hk>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: 回复: driver/bug: suspected missing null check in hisi_lpc.c
Date: Tue, 26 Oct 2021 11:32:38 +0100 [thread overview]
Message-ID: <035fa6a5-2401-abbb-84a0-e46ddc0ce157@huawei.com> (raw)
In-Reply-To: <TYCP286MB1188596CE44B1236D4EDD4B88A839@TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM>
On 25/10/2021 16:31, YE Chengfeng wrote:
> It is driver/bus, sorry for the typo.
>
> -----邮件原件-----
> 发件人: YE Chengfeng
> 发送时间: 2021年10月25日 23:22
> 收件人: linux-kernel@vger.kernel.org; john.garry@huawei.com
> 主题: driver/bug: suspected missing null check in hisi_lpc.c
>
> Hi,
>
> https://github.com/torvalds/linux/blob/master/drivers/bus/hisi_lpc.c#L483
>
> Our experimental static analysis tool detects a null-ptr-reference problem. It could be false positive, we report this to you just in case.
>
> Null check is missing for the return pointer of ACPI_COMPANION at line 483 and line 504. It seems that there could be potential null-ptr-dereference problem at line 488 and line 509. Could you spare some time to have a look at it?
>
> Thanks so much,
> Chengfeng
>
I don't think that we should have a problem as ACPI_COMPANION() should
just not return NULL for us. But I can't give you a better reason than
that without fully examining the ACPI code, which I'm not keen on...
Thanks,
John
next prev parent reply other threads:[~2021-10-26 10:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 15:22 YE Chengfeng
2021-10-25 15:31 ` 回复: " YE Chengfeng
2021-10-26 10:32 ` John Garry [this message]
2021-10-26 12:25 ` 回复: " YE Chengfeng
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=035fa6a5-2401-abbb-84a0-e46ddc0ce157@huawei.com \
--to=john.garry@huawei.com \
--cc=cyeaa@connect.ust.hk \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®