]> dgit.raspbian.org Git - grub2.git/commit
fs/f2fs: Set a grub_errno if mount fails
authorB Horn <b@horn.uk>
Sun, 12 May 2024 05:15:03 +0000 (06:15 +0100)
committerAurelien Jarno <aurel32@debian.org>
Thu, 30 Apr 2026 19:02:01 +0000 (21:02 +0200)
commita0420519acd7c6bdfed2d5f86620e4ad585e1e63
tree6c97c80b5d1a4a067bca6129231341c4a0ac091c
parent7d9ad7d66c2c5c49fac6cfe628b590e2656fe03a
fs/f2fs: Set a grub_errno if mount fails

It was previously possible for grub_errno to not be set when
grub_f2fs_mount() failed if nat_bitmap_ptr() returned NULL.

This issue is solved by ensuring a grub_errno is set in the fail case.

Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-f2fs-Set-a-grub_errno-if-mount-fails.patch
grub-core/fs/f2fs.c