2006-10-27 Hollis Blanchard <hollis@penguinppc.org>

* disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
	is negative.
	* kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
This commit is contained in:
hollisb 2006-10-27 17:57:05 +00:00
parent 97b2f2ffe8
commit e2b8278c9e
3 changed files with 8 additions and 2 deletions

View file

@ -136,7 +136,7 @@ grub_ofdisk_read (grub_disk_t disk, grub_disk_addr_t sector,
grub_ieee1275_seek ((grub_ieee1275_ihandle_t) disk->data, (int) (pos >> 32),
(int) pos & 0xFFFFFFFFUL, &status);
if (status != 0)
if (status < 0)
return grub_error (GRUB_ERR_READ_ERROR,
"Seek error, can't seek block %llu",
sector);