Skip to content

Commit 524b2c6

Browse files
committed
romfs: fix romfs_read_folio()
Add the correct offset to folio_zero_tail(). Fixes: d86f2de ("romfs: Convert romfs_read_folio() to use a folio") Reported-by: Greg Ungerer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 92764e8 commit 524b2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/romfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static int romfs_read_folio(struct file *file, struct folio *folio)
126126
}
127127
}
128128

129-
buf = folio_zero_tail(folio, fillsize, buf);
129+
buf = folio_zero_tail(folio, fillsize, buf + fillsize);
130130
kunmap_local(buf);
131131
folio_end_read(folio, ret == 0);
132132
return ret;

0 commit comments

Comments
 (0)