2021-10-26 07:22:51

by YE Chengfeng

[permalink] [raw]
Subject: drivers/clk/qcom: suspected missing null check for callsite of clk_hw_get_parent in clk_pll_vote_enable

Hi,

https://github.com/torvalds/linux/blob/master/drivers/clk/qcom/clk-pll.c#L203

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 this 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