aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-05-03 20:04:21 +0100
committerMichael Brown <mcb30@ipxe.org>2011-05-03 20:07:30 +0100
commit0b6808aadcbb9f04df34e1bba9012ed947e67cb0 (patch)
treef4aedc61524bbe1723df6fb41e20ebefae7cdb6c /src
parentdf58a19015fe6ce8ec8b6624b618d3a2d563356c (diff)
downloadipxe-0b6808aadcbb9f04df34e1bba9012ed947e67cb0.zip
ipxe-0b6808aadcbb9f04df34e1bba9012ed947e67cb0.tar.gz
ipxe-0b6808aadcbb9f04df34e1bba9012ed947e67cb0.tar.bz2
[netdevice] Improve detection of bugs in drivers' TX completion handling
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/net/netdevice.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 2180c65..9a8a3aa 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -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 );