-
Committer:
Michael Brown
-
Date:
2020-11-29 11:25:40 UTC
-
Revision ID:
git-v1:a8442750e6059335f1f7f5ce8b2fb803a6953789
[efi] Avoid requesting zero-length DMA mappings
The UEFI specification does not prohibit zero-length DMA mappings.
However, there is a reasonable chance that at least one implementation
will treat it as an invalid parameter. As a precaution, avoid calling
EFI_PCI_IO_PROTOCOL.Map() with a length of zero.
Signed-off-by: Michael Brown <mcb30@ipxe.org>