* grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as

a bad FS.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-13 20:23:02 +02:00
parent def3df7520
commit bfb320c644
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
a bad FS.
2012-05-12 Vladimir Serbinenko <phcoder@gmail.com> 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/udf.c (read_string): Bail out on size=0. * grub-core/fs/udf.c (read_string): Bail out on size=0.

View file

@ -77,7 +77,8 @@ grub_fs_probe (grub_device_t device)
grub_dprintf ("fs", "%s detection failed.\n", p->name); grub_dprintf ("fs", "%s detection failed.\n", p->name);
grub_error_pop (); grub_error_pop ();
if (grub_errno != GRUB_ERR_BAD_FS) if (grub_errno != GRUB_ERR_BAD_FS
&& grub_errno != GRUB_ERR_OUT_OF_RANGE)
return 0; return 0;
grub_errno = GRUB_ERR_NONE; grub_errno = GRUB_ERR_NONE;