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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user