[eoib] Avoid passing a NULL I/O buffer to netdev_tx_complete_err()
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Mar 2017 13:07:10 +0000 (15:07 +0200)
committerMichael Brown <mcb30@ipxe.org>
Tue, 21 Mar 2017 13:07:10 +0000 (15:07 +0200)
commit1ec2a60614ea0f27843d553d3ee698f9e8d43d79
treea7bf9da34b6013f88c2042dd19bcf3bcacc62678
parent64de7dc7fd06470424bb4c3ea537f542c46895c4
[eoib] Avoid passing a NULL I/O buffer to netdev_tx_complete_err()

Report errors in eoib_duplicate() via netdev_tx_err() rather than
netdev_tx_complete_err(), since netdev_tx_complete_err() accepts only
valid I/O buffers that are currently in the network device's transmit
queue.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/eoib.c