Re: lib/test_hmm.c:932 dmirror_migrate_to_system() error: uninitialized symbol 'ret'.
From: Dan Carpenter
Date: Tue Feb 03 2026 - 09:49:16 EST
On Tue, Feb 03, 2026 at 09:34:40PM +1100, Balbir Singh wrote:
> > 4c2e0f764eb4444 Alex Sierra 2022-07-15 928 out:
> > 4c2e0f764eb4444 Alex Sierra 2022-07-15 929 mmap_read_unlock(mm);
> > 4c2e0f764eb4444 Alex Sierra 2022-07-15 930 mmput(mm);
> > 4c2e0f764eb4444 Alex Sierra 2022-07-15 931
> > 4c2e0f764eb4444 Alex Sierra 2022-07-15 @932 return ret;
> > 4c2e0f764eb4444 Alex Sierra 2022-07-15 933 }
> >
>
> The code looks older than the current top of master? The smatch warning is still valid though. I was wondering
> did smatch get new heuristics to catch this?
Sorry, I can't explain what happened here. I had seen the warning before
years ago and not reported it. :( I don't know why the zero-day bot is
only complaining now though, or why it blames that specific commit.
regards,
dan carpenter