mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-09 10:25:53 +00:00
Return USB_ERR_INTERNAL instead of grub_errno when appropriate
This commit is contained in:
parent
df26241939
commit
d10d149667
@ -209,7 +209,7 @@ grub_usb_bulk_readwrite (grub_usb_device_t dev,
|
|||||||
if (! transfer)
|
if (! transfer)
|
||||||
{
|
{
|
||||||
grub_dma_free (data_chunk);
|
grub_dma_free (data_chunk);
|
||||||
return grub_errno;
|
return GRUB_USB_ERR_INTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
datablocks = ((size + max - 1) / max);
|
datablocks = ((size + max - 1) / max);
|
||||||
@ -229,7 +229,7 @@ grub_usb_bulk_readwrite (grub_usb_device_t dev,
|
|||||||
{
|
{
|
||||||
grub_free (transfer);
|
grub_free (transfer);
|
||||||
grub_dma_free (data_chunk);
|
grub_dma_free (data_chunk);
|
||||||
return grub_errno;
|
return GRUB_USB_ERR_INTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set up all transfers. */
|
/* Set up all transfers. */
|
||||||
|
Loading…
Reference in New Issue
Block a user