[lkml]   [2019]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [v4] coccinelle: semantic patch for missing put_device()
>>>> In a function, for variables returned by calling of_find_device_by_node(),
>>> Do variables really get returned?
>>> The provided pointer should usually be stored somewhere.
>> Thank you very much, we will consider this situation and submit a next version to fix it.
> I don't know what Markus is talking about here,

I find that my feedback contained details for two items.

1. I suggested another adjustment for a wording in the evolving
commit description.

2. Should any more case distinctions be taken into account for the data
storage of function return values so that the shown source code search
approach can become safer?

> so I'm not sure that a change is needed.

I am curious if there is a need for further clarifications then.

>>>> + "ERROR: missing put_device;"
>>> Will change confidence considerations result in another fine-tuning for this message?
>> Thank you, we will change "ERROR" to "WARNING".
> I think ERROR is fine.

I have got a different software development view for the possible
severity information.

> If it is a real positive than it is a real problem.

I can agree to this information.

You specified also a precondition.
How should be achieved that the source code analysis will not point
false positives out?

> Warning is for things that look ugly,

I am also curious on how views will evolve around such ugliness.

> but don't have any impact on the execution.

I find such a restriction questionable.

Would you like to share any more ideas for safe data flow analysis
(eventually also together with your software)?


 \ /
  Last update: 2019-02-15 08:12    [W:0.050 / U:8.012 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site