* grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
properly in case of missing block size.
This commit is contained in:
parent
b2cae20c11
commit
7d93298ff6
2 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
|
||||
properly in case of missing block size.
|
||||
|
||||
2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/arm/setjmp.S: Add missing license section.
|
||||
|
|
|
@ -183,10 +183,7 @@ uboot_disk_open (const char *name, struct grub_disk *disk)
|
|||
|
||||
d->block_size = devinfo->di_stor.block_size;
|
||||
if (d->block_size == 0)
|
||||
{
|
||||
grub_printf ("%s: no block size!\n", __FUNCTION__);
|
||||
return GRUB_ERR_IO;
|
||||
}
|
||||
return grub_error (GRUB_ERR_IO, "no block size");
|
||||
|
||||
for (disk->log_sector_size = 0;
|
||||
(1U << disk->log_sector_size) < d->block_size;
|
||||
|
|
Loading…
Reference in a new issue