]> git.ipfire.org Git - thirdparty/linux.git/commit
ovl: properly print correct variable
authorAntonio Quartulli <antonio@mandelbit.com>
Mon, 21 Jul 2025 20:38:21 +0000 (22:38 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 25 Jul 2025 08:20:36 +0000 (10:20 +0200)
commit672820a070ea5e6ae114f6109726a4e18313a527
tree5b365b70c109947fbd6c5886bbade61a5463e898
parentdc3977856443e336ed2ba82a2e2e5514244c82e7
ovl: properly print correct variable

In case of ovl_lookup_temp() failure, we currently print `err`
which is actually not initialized at all.

Instead, properly print PTR_ERR(whiteout) which is where the
actual error really is.

Address-Coverity-ID: 1647983 ("Uninitialized variables  (UNINIT)")
Fixes: 8afa0a7367138 ("ovl: narrow locking in ovl_whiteout()")
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Link: https://lore.kernel.org/20250721203821.7812-1-antonio@mandelbit.com
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/overlayfs/dir.c