All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/clk/sunxi-ng: suspected missing null check for callsite of clk_hw_get_parent
@ 2021-10-26  6:47 YE Chengfeng
  0 siblings, 0 replies; only message in thread
From: YE Chengfeng @ 2021-10-26  6:47 UTC (permalink / raw)
  To: mturquette, sboyd, mripard, wens, jernej.skrabec; +Cc: linux-kernel

Hi,

https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/drivers/clk/sunxi-ng/ccu_gate.c#L101
https://github.com/torvalds/linux/blob/master/drivers/clk/sunxi-ng/ccu_mux.c#L93

Our experimental static analysis tool detects a null-ptr-reference problem. It could be false positive, we report this to you just in case.

In these two call sites of clk_hw_get_parent, the return pointer is not null-check. We are not familiar with the code, and don't know whether it would be a potential null pointer dereference problem. Would you like to spare some time to have a look at it?

Thanks so much,
Chengfeng


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-26  6:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26  6:47 drivers/clk/sunxi-ng: suspected missing null check for callsite of clk_hw_get_parent YE Chengfeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.