From: YE Chengfeng <cyeaa@connect.ust.hk>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: drivers/char: suspected null-pointer dereference problem in handle_control_message
Date: Tue, 26 Oct 2021 06:19:15 +0000 [thread overview]
Message-ID: <TYCP286MB1188D6426E281A0947B3E51C8A849@TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM> (raw)
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
next reply other threads:[~2021-10-26 6:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-26 6:19 YE Chengfeng [this message]
[not found] <TYCP286MB11884B1010AF8C77F1BBDAF08A849@TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM>
2021-10-26 10:29 ` Amit Shah
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=TYCP286MB1188D6426E281A0947B3E51C8A849@TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM \
--to=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®