lkml.org 
[lkml]   [2021]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectdrivers/clk/sunxi-ng: suspected missing null check for callsite of clk_hw_get_parent
Date
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

\
 
 \ /
  Last update: 2021-10-26 08:47    [W:0.126 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site