Message ID | 20150219034354.21108.98114.stgit@thinktux.in.ibm.com |
---|---|
State | Superseded |
Headers | show |
On Thu, Feb 19, 2015 at 09:13:55AM +0530, Ananth N Mavinakayanahalli wrote: > Fix the loop iterator to not miss a lid > > Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> > --- > core/hostservices.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/core/hostservices.c b/core/hostservices.c > index ad19e15..d981a50 100644 > --- a/core/hostservices.c > +++ b/core/hostservices.c > @@ -465,7 +465,7 @@ void hservices_lid_preload(void) > prlog(PR_INFO, "HBRT: %d lids to load\n", (int)num_lids); > > /* Currently HBRT needs only one (OCC) lid */ > - while (num_lids--) > + while (--num_lids) > __hservice_lid_preload(lid_list[num_lids]); Stewart, Please ignore this patch. I will send a new one along with the other preload changes. Ananth
diff --git a/core/hostservices.c b/core/hostservices.c index ad19e15..d981a50 100644 --- a/core/hostservices.c +++ b/core/hostservices.c @@ -465,7 +465,7 @@ void hservices_lid_preload(void) prlog(PR_INFO, "HBRT: %d lids to load\n", (int)num_lids); /* Currently HBRT needs only one (OCC) lid */ - while (num_lids--) + while (--num_lids) __hservice_lid_preload(lid_list[num_lids]); }
Fix the loop iterator to not miss a lid Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> --- core/hostservices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)