Fix regressions by previous commits
This commit is contained in:
parent
5855ddc402
commit
e571f2332e
5 changed files with 52 additions and 29 deletions
|
@ -53,8 +53,11 @@ grub_device_open (const char *name)
|
|||
dev->disk = grub_disk_open (name);
|
||||
if (dev->disk)
|
||||
return dev;
|
||||
if (grub_net_open)
|
||||
dev->net = grub_net_open (name);
|
||||
if (grub_net_open && grub_errno == GRUB_ERR_UNKNOWN_DEVICE)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
dev->net = grub_net_open (name);
|
||||
}
|
||||
|
||||
if (dev->net)
|
||||
return dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue