Browse Source

[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 13 years ago
parent
commit
98b3599a65
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      src/net/infiniband.c
  2. 1
    1
      src/net/netdevice.c

+ 2
- 1
src/net/infiniband.c View File

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 View File

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
 

Loading…
Cancel
Save