Просмотр исходного кода

[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 лет назад
Родитель
Сommit
0b6808aadc
1 измененных файлов: 1 добавлений и 2 удалений
  1. 1
    2
      src/net/netdevice.c

+ 1
- 2
src/net/netdevice.c Просмотреть файл

@@ -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 );

Загрузка…
Отмена
Сохранить