mirror of https://github.com/ipxe/ipxe.git
[netdevice] Improve detection of bugs in drivers' TX completion handling
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/5/head
parent
df58a19015
commit
0b6808aadc
|
@ -216,8 +216,7 @@ void netdev_tx_complete_err ( struct net_device *netdev,
|
|||
}
|
||||
|
||||
/* Catch data corruption as early as possible */
|
||||
assert ( iobuf->list.next != NULL );
|
||||
assert ( iobuf->list.prev != NULL );
|
||||
list_check_contains ( iobuf, &netdev->tx_queue, list );
|
||||
|
||||
/* Dequeue and free I/O buffer */
|
||||
list_del ( &iobuf->list );
|
||||
|
|
Loading…
Reference in New Issue