mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
* grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
properly in case of missing block size.
This commit is contained in:
1 parent
b2cae20c11
commit
7d93298ff6
2 files changed
+6
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user