浏览代码

[list] Fix typographical error from previous commit

Fix typographical error from commit ea631f6 ("[list] Add
list_first_entry()").  The symptom was PXELINUX 3.86 causing a stack
overflow under VMware.

Tested-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Shao Miller 15 年前
父节点
当前提交
98b3599a65
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2
    1
      src/net/infiniband.c
  2. 1
    1
      src/net/netdevice.c

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

982
 struct ib_device * last_opened_ibdev ( void ) {
982
 struct ib_device * last_opened_ibdev ( void ) {
983
 	struct ib_device *ibdev;
983
 	struct ib_device *ibdev;
984
 
984
 
985
-	ibdev = list_first_entry ( &open_ib_devices, struct ib_device, list );
985
+	ibdev = list_first_entry ( &open_ib_devices, struct ib_device,
986
+				   open_list );
986
 	if ( ! ibdev )
987
 	if ( ! ibdev )
987
 		return NULL;
988
 		return NULL;
988
 
989
 

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

594
 	struct net_device *netdev;
594
 	struct net_device *netdev;
595
 
595
 
596
 	netdev = list_first_entry ( &open_net_devices, struct net_device,
596
 	netdev = list_first_entry ( &open_net_devices, struct net_device,
597
-				    list );
597
+				    open_list );
598
 	if ( ! netdev )
598
 	if ( ! netdev )
599
 		return NULL;
599
 		return NULL;
600
 
600
 

正在加载...
取消
保存