diff options
author | Christian Brauner <brauner@kernel.org> | 2024-08-15 14:39:33 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-08-21 22:32:58 +0200 |
commit | 524b2c6dc80d735be9ebcd2decffe2889baab65d (patch) | |
tree | 8e45a3171c30e837dd4e9accae7008ca3c764cc8 /fs/romfs | |
parent | 92764e8822d4e7f8efb5ad959fac195a7f8ea0c6 (diff) |
romfs: fix romfs_read_folio()
Add the correct offset to folio_zero_tail().
Fixes: d86f2de026c5 ("romfs: Convert romfs_read_folio() to use a folio")
Reported-by: Greg Ungerer <gregungerer@westnet.com.au>
Link: https://lore.kernel.org/r/Zr0GTnPHfeA0P8nb@casper.infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/romfs')
-rw-r--r-- | fs/romfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/romfs/super.c b/fs/romfs/super.c index 68758b6fed94..0addcc849ff2 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c @@ -126,7 +126,7 @@ static int romfs_read_folio(struct file *file, struct folio *folio) } } - buf = folio_zero_tail(folio, fillsize, buf); + buf = folio_zero_tail(folio, fillsize, buf + fillsize); kunmap_local(buf); folio_end_read(folio, ret == 0); return ret; |