grub_ext2_read_block: Fix return type on error.
This commit is contained in:
parent
0d7c7f751d
commit
54e7dbbcb9
1 changed files with 4 additions and 3 deletions
|
@ -538,8 +538,9 @@ grub_ext2_read_block (grub_fshelp_node_t node, grub_disk_addr_t fileblock)
|
||||||
shift = 2;
|
shift = 2;
|
||||||
goto indirect;
|
goto indirect;
|
||||||
}
|
}
|
||||||
return grub_error (GRUB_ERR_BAD_FS,
|
grub_error (GRUB_ERR_BAD_FS,
|
||||||
"ext2fs doesn't support quadruple indirect blocks");
|
"ext2fs doesn't support quadruple indirect blocks");
|
||||||
|
return -1;
|
||||||
|
|
||||||
indirect:
|
indirect:
|
||||||
do {
|
do {
|
||||||
|
@ -554,7 +555,7 @@ indirect:
|
||||||
& ((1 << log_perblock) - 1))
|
& ((1 << log_perblock) - 1))
|
||||||
* sizeof (indir),
|
* sizeof (indir),
|
||||||
sizeof (indir), &indir))
|
sizeof (indir), &indir))
|
||||||
return grub_errno;
|
return -1;
|
||||||
} while (shift--);
|
} while (shift--);
|
||||||
|
|
||||||
return grub_le_to_cpu32 (indir);
|
return grub_le_to_cpu32 (indir);
|
||||||
|
|
Loading…
Add table
Reference in a new issue