Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
0b6808aadc
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/net/netdevice.c

+ 1
- 2
src/net/netdevice.c View File

@@ -216,8 +216,7 @@ void netdev_tx_complete_err ( struct net_device *netdev,
216 216
 	}
217 217
 
218 218
 	/* Catch data corruption as early as possible */
219
-	assert ( iobuf->list.next != NULL );
220
-	assert ( iobuf->list.prev != NULL );
219
+	list_check_contains ( iobuf, &netdev->tx_queue, list );
221 220
 
222 221
 	/* Dequeue and free I/O buffer */
223 222
 	list_del ( &iobuf->list );

Loading…
Cancel
Save