* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing

byte-swap on big-endian.
	Reported by: Lennart Sorensen
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-08 18:42:03 +01:00
parent 807fb77c16
commit 6a0295e205
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
byte-swap on big-endian.
Reported by: Lennart Sorensen
2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/i386/linux.c (prot_init_space): New variable.

View file

@ -178,7 +178,7 @@ grub_mdraid_detect (grub_disk_t disk,
return NULL;
if (grub_disk_read (disk, sector,
(char *) &sb.dev_roles[sb.dev_number]
(char *) &sb.dev_roles[grub_le_to_cpu32 (sb.dev_number)]
- (char *) &sb,
sizeof (role), &role))
return NULL;