瀏覽代碼

[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 年之前
父節點
當前提交
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 );

Loading…
取消
儲存