david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[netdevice] Improve detection of bugs in drivers' TX completion handling

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-05-03 20:04:21 +01:00
parent df58a19015
commit 0b6808aadc
1 changed files with 1 additions and 2 deletions

View File

@ -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 );