mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* driver/bug: suspected missing null check in hisi_lpc.c
@ 2021-10-25 15:22 YE Chengfeng
  2021-10-25 15:31 ` 回复: " YE Chengfeng
  0 siblings, 1 reply; 4+ messages in thread
From: YE Chengfeng @ 2021-10-25 15:22 UTC (permalink / raw)
  To: linux-kernel, john.garry

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-26 12:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 15:22 driver/bug: suspected missing null check in hisi_lpc.c YE Chengfeng
2021-10-25 15:31 ` 回复: " YE Chengfeng
2021-10-26 10:32   ` John Garry
2021-10-26 12:25     ` 回复: " YE Chengfeng

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®