]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/xfs: Fix grub_xfs_iterate_dir() return value in case of failure
authorEgor Ignatov <egori@altlinux.org>
Thu, 23 Jan 2025 17:44:14 +0000 (20:44 +0300)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 26 Feb 2025 19:44:36 +0000 (20:44 +0100)
commitf209887381a56dea79152ab26ffb485718e3218e
treec5c6c92ef87f3c09ba4e313d5bc18ef5dbd60496
parent1ed2628b560cedac7fd1a696985ab85b24541a8e
fs/xfs: Fix grub_xfs_iterate_dir() return value in case of failure

Commit ef7850c757 (fs/xfs: Fix issues found while fuzzing the XFS
filesystem) introduced multiple boundary checks in grub_xfs_iterate_dir()
but handled the error incorrectly returning error code instead of 0.
Fix it. Also change the error message so that it doesn't match the
message in grub_xfs_read_inode().

Fixes: ef7850c757 (fs/xfs: Fix issues found while fuzzing the XFS filesystem)
Signed-off-by: Egor Ignatov <egori@altlinux.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/xfs.c