2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-10-26 17:05:34 +00:00

[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

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