static analysis - false positive


I have this source code with this analysis:

the problem is that at (2) it assumes that devsw->d_flags & D_NEEDGIANT is false
while at (6) it assumes that it's true. this is bogus assumption and thus
the report is false positive

I cannot get a shorter example... can someone take a look at it?



Hi Roman,

This issue is already being tracked by two PRs:

PR 2304
PR 3098

PR 2304 relates to tracking field values, which is a feature that has been implemented and is currently being tested.