Re: [PATCH v2] fuse: Uninitialized variable in fuse_epoch_work()

From: Miklos Szeredi

Date: Wed Nov 26 2025 - 06:48:00 EST


On Mon, 24 Nov 2025 at 07:05, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
>
> The fuse_ilookup() function only sets *fm on the success path so this
> "if (fm) {" NULL check doesn't work. The "fm" pointer is either
> uninitialized or valid. Check the "inode" pointer instead.
>
> Also, while it's not necessary, it is cleaner to move the iput(inode)
> under the NULL check as well.
>
> Fixes: 64becd224ff9 ("fuse: new work queue to invalidate dentries from old epochs")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Reviewed-by: Luis Henriques <luis@xxxxxxxxxx>

Applied, thanks.

Miklos