aboutsummaryrefslogtreecommitdiffstats
path: root/fs/squashfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/squashfs')
-rw-r--r--fs/squashfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/squashfs/dir.c b/fs/squashfs/dir.c
index 7142a6fd28d3..b381305c9a47 100644
--- a/fs/squashfs/dir.c
+++ b/fs/squashfs/dir.c
@@ -64,7 +64,7 @@ static int get_dir_index_using_offset(struct super_block *sb,
64 * is offset by 3 because we invent "." and ".." entries which are 64 * is offset by 3 because we invent "." and ".." entries which are
65 * not actually stored in the directory. 65 * not actually stored in the directory.
66 */ 66 */
67 if (f_pos < 3) 67 if (f_pos <= 3)
68 return f_pos; 68 return f_pos;
69 f_pos -= 3; 69 f_pos -= 3;
70 70