]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[list] Fix typographical error from previous commit
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Tue, 9 Nov 2010 02:11:32 +0000 (02:11 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 11 Nov 2010 00:30:22 +0000 (00:30 +0000)
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>
src/net/infiniband.c
src/net/netdevice.c

index a6e4233af21a2785897ab002f349025a20165645..c2cb834df6b085344d3a46394b0cc23d66eb1ecd 100644 (file)
@@ -982,7 +982,8 @@ struct ib_device * find_ibdev ( union ib_gid *gid ) {
 struct ib_device * last_opened_ibdev ( void ) {
        struct ib_device *ibdev;
 
-       ibdev = list_first_entry ( &open_ib_devices, struct ib_device, list );
+       ibdev = list_first_entry ( &open_ib_devices, struct ib_device,
+                                  open_list );
        if ( ! ibdev )
                return NULL;
 
index 3a01a58dd76d1494f9e6ae2bc8425df0740df64c..9da4ce477a7705d1e606362e4fe207cc3f7ebfa8 100644 (file)
@@ -594,7 +594,7 @@ struct net_device * last_opened_netdev ( void ) {
        struct net_device *netdev;
 
        netdev = list_first_entry ( &open_net_devices, struct net_device,
-                                   list );
+                                   open_list );
        if ( ! netdev )
                return NULL;