| 1 |
Fromscip-debian debian grub2 2.14-2 grub2/patches/`upstream/fs-xfs-Handle-root-inode-read-failure-in-grub_xfs_mount.patch`#From.: Egor Ignatov <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian grub2 2.14-2 grub2/patches/`upstream/fs-xfs-Handle-root-inode-read-failure-in-grub_xfs_mount.patch`#Date.: Thu, 23 Jan 2025 20:44:13 +0300 |
| 3 |
Subjectscip-debian debian grub2 2.14-2 grub2/patches/`upstream/fs-xfs-Handle-root-inode-read-failure-in-grub_xfs_mount.patch`#Subject.: fs/xfs: Handle root inode read failure in grub_xfs_mount |
| 4 |
|
| 5 |
Signed-off-by: Egor Ignatov <[email protected]> |
| 6 |
--- |
| 7 |
grub-core/fs/xfs.c | 2 ++ |
| 8 |
1 file changed, 2 insertions(+) |
| 9 |
|
| 10 |
diff --git a/grub-core/fs/xfs.cscip-debian debian grub2 2.14-2 grub2/upstream/`grub-core/fs/xfs.c`: b/grub-core/fs/xfs.cscip-debian debian grub2 2.14-2 grub2/upstream/`grub-core/fs/xfs.c`: |
| 11 |
index 0fb7d80..776efed 100644 |
| 12 |
--- a/grub-core/fs/xfs.c |
| 13 |
+++ b/grub-core/fs/xfs.c |
| 14 |
@@ -1111,6 +1111,8 @@ grub_xfs_mount (grub_disk_t disk) |
| 15 |
grub_cpu_to_be64(data->sblock.rootino)); |
| 16 |
|
| 17 |
grub_xfs_read_inode (data, data->diropen.ino, &data->diropen.inode); |
| 18 |
+ if (grub_errno) |
| 19 |
+ goto fail; |
| 20 |
|
| 21 |
return data; |
| 22 |
fail: |