From b5d465a24babe0dbb7438a7ef28eb29a933de302 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Aug 2024 15:16:15 +0200 Subject: Merging upstream version 6.9.11. Signed-off-by: Daniel Baumann --- fs/erofs/zmap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/erofs/zmap.c') diff --git a/fs/erofs/zmap.c b/fs/erofs/zmap.c index e313c93635..6bd435a565 100644 --- a/fs/erofs/zmap.c +++ b/fs/erofs/zmap.c @@ -723,6 +723,8 @@ int z_erofs_map_blocks_iter(struct inode *inode, struct erofs_map_blocks *map, err = z_erofs_do_map_blocks(inode, map, flags); out: + if (err) + map->m_llen = 0; trace_z_erofs_map_blocks_iter_exit(inode, map, flags, err); return err; } -- cgit v1.2.3