Re: ext4_lazyinit_thread: 'ret' may be used uninitialized in thisfunction

From: Lukas Czerner
Date: Mon Nov 01 2010 - 11:27:47 EST


On Sun, 31 Oct 2010, Stefan Richter wrote:

> Commit bfff68738f1c "ext4: add support for lazy inode table
> initialization" added the following build warning:
>
> fs/ext4/super.c: In function 'ext4_lazyinit_thread':
> fs/ext4/super.c:2702: warning: 'ret' may be used uninitialized in this function
>
> This warning is due to an actual bug. But I don't know what the fix is.
>

Hi Stefan,

thank you for noticing this, because I actually do not see the warning
(I wonder why...), but it is definitely a bug, so the trivial patch below
should fix that.

Thanks!
-Lukas