Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit a9af9d5

Browse files
OGAWAHirofumigregkh
authored andcommitted
fat: fix uninitialized variable
commit 963a7f4 upstream. syszbot produced this with a corrupted fs image. In theory, however an IO error would trigger this also. This affects just an error report, so should not be a serious error. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: OGAWA Hirofumi <[email protected]> Reported-by: [email protected] Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8e29f32 commit a9af9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fat/namei_vfat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry,
10371037
if (corrupt < 0) {
10381038
fat_fs_error(new_dir->i_sb,
10391039
"%s: Filesystem corrupted (i_pos %lld)",
1040-
__func__, sinfo.i_pos);
1040+
__func__, new_i_pos);
10411041
}
10421042
goto out;
10431043
}

0 commit comments

Comments
 (0)