Explorar el Código

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 13 años
padre
commit
0b6808aadc
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      src/net/netdevice.c

+ 1
- 2
src/net/netdevice.c Ver fichero

@@ -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…
Cancelar
Guardar