mdraid1x-gcc10.patch 678 B

1234567891011121314151617
  1. grub-core/disk/mdraid1x_linux.c | 2 +-
  2. 1 file changed, 1 insertion(+), 1 deletion(-)
  3. diff --git a/grub-core/disk/mdraid1x_linux.c b/grub-core/disk/mdraid1x_linux.c
  4. index 7cc80d3df..c980feba4 100644
  5. --- a/grub-core/disk/mdraid1x_linux.c
  6. +++ b/grub-core/disk/mdraid1x_linux.c
  7. @@ -178,7 +178,7 @@ grub_mdraid_detect (grub_disk_t disk,
  8. return NULL;
  9. if (grub_disk_read (disk, sector,
  10. - (char *) &sb.dev_roles[grub_le_to_cpu32 (sb.dev_number)]
  11. + (char *) (sb.dev_roles + grub_le_to_cpu32 (sb.dev_number))
  12. - (char *) &sb,
  13. sizeof (role), &role))
  14. return NULL;