* grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into

badfs.
	Reported by: TiCPU.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-01-10 17:35:32 +01:00
parent cf0eaf13a1
commit b1969b3049
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
badfs.
Reported by: TiCPU.
2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/raid.c (insert_array): Display RAID name in duplicate

View File

@ -60,6 +60,9 @@ grub_btrfs_mount (grub_disk_t disk)
return data;
fail:
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
grub_error (GRUB_ERR_BAD_FS, "not a Btrfs filesystem");
grub_free (data);
return NULL;
}