~roguescholar/ipxe/trunk

Viewing all changes in revision 5783.

  • Committer: Michael Brown
  • Date: 2020-11-29 11:25:40 UTC
  • Revision ID: git-v1:9ff61ab28df1a0d20e1819d387094d220c1580ad
[netdevice] Do not attempt to unmap a null I/O buffer

netdev_tx_err() may be called with a null I/O buffer (e.g. to record a
transmit error with no associated buffer).  Avoid a potential null
pointer dereference in the DMA unmapping code path.

Signed-off-by: Michael Brown <mcb30@ipxe.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: