~roguescholar/ipxe/trunk

Viewing all changes in revision 5785.

  • 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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: