grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

floating point exception in disk/raid.c:206


From: Felix Zielcke
Subject: floating point exception in disk/raid.c:206
Date: Thu, 04 Sep 2008 11:29:56 +0200

static grub_err_t
grub_raid_read (grub_disk_t disk, grub_disk_addr_t sector,
                grub_size_t size, char *buf)

    case 0:
    case 1:
    case 10:
      {
        read_sector = grub_divmod64 (sector, array->chunk_size, &b);


Bean, this is a bit wrong because array->chunk_size is 0 in the RAID 1
case and sector is 0 too in the case I got with gdb.

The easiest fix would be probable to just set chunk_size to for example
64.
Attached patch does it, but maybe you have a better/other idea?

-- 
Felix Zielcke

Attachment: fpe.raid.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]