浏览代码

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 年前
父节点
当前提交
0b6808aadc
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      src/net/netdevice.c

+ 1
- 2
src/net/netdevice.c 查看文件

216
 	}
216
 	}
217
 
217
 
218
 	/* Catch data corruption as early as possible */
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
 	/* Dequeue and free I/O buffer */
221
 	/* Dequeue and free I/O buffer */
223
 	list_del ( &iobuf->list );
222
 	list_del ( &iobuf->list );

正在加载...
取消
保存