]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[netdevice] Improve detection of bugs in drivers' TX completion handling
authorMichael Brown <mcb30@ipxe.org>
Tue, 3 May 2011 19:04:21 +0000 (20:04 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 3 May 2011 19:07:30 +0000 (20:07 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/netdevice.c

index 2180c65fe623ebb81835893b7e49296cb815fe50..9a8a3aaf6a376f3a4de7c20e2a765e96af8891c0 100644 (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 );