From 98b3599a65f3886f46d79c447882360a4f51af83 Mon Sep 17 00:00:00 2001 From: Shao Miller Date: Tue, 9 Nov 2010 02:11:32 +0000 Subject: [PATCH] [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 Signed-off-by: Shao Miller Signed-off-by: Michael Brown --- src/net/infiniband.c | 3 ++- src/net/netdevice.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/infiniband.c b/src/net/infiniband.c index a6e4233a..c2cb834d 100644 --- a/src/net/infiniband.c +++ b/src/net/infiniband.c @@ -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; diff --git a/src/net/netdevice.c b/src/net/netdevice.c index 3a01a58d..9da4ce47 100644 --- a/src/net/netdevice.c +++ b/src/net/netdevice.c @@ -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;