From patchwork Thu Feb 19 03:43:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ananth N Mavinakayanahalli X-Patchwork-Id: 441526 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DD7D814008F for ; Thu, 19 Feb 2015 14:42:44 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id C32591A0BF0 for ; Thu, 19 Feb 2015 14:42:44 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e28smtp04.in.ibm.com (e28smtp04.in.ibm.com [122.248.162.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id ABEEB1A025F for ; Thu, 19 Feb 2015 14:42:41 +1100 (AEDT) Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Feb 2015 09:12:37 +0530 Received: from d28dlp02.in.ibm.com (9.184.220.127) by e28smtp04.in.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 19 Feb 2015 09:12:36 +0530 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 510FC394004E for ; Thu, 19 Feb 2015 09:12:36 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay05.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1J3gZoq5832926 for ; Thu, 19 Feb 2015 09:12:35 +0530 Received: from d28av03.in.ibm.com (localhost [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1J3gZNV011310 for ; Thu, 19 Feb 2015 09:12:35 +0530 Received: from thinktux.in.ibm.com ([9.77.198.74]) by d28av03.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t1J3gYCT011302 for ; Thu, 19 Feb 2015 09:12:35 +0530 To: skiboot@lists.ozlabs.org From: Ananth N Mavinakayanahalli Date: Thu, 19 Feb 2015 09:13:55 +0530 Message-ID: <20150219034354.21108.98114.stgit@thinktux.in.ibm.com> User-Agent: StGit/0.16 MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15021903-0013-0000-0000-000003D6DFC2 Subject: [Skiboot] [PATCH] hostservices: Fix lid load X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Fix the loop iterator to not miss a lid Signed-off-by: Ananth N Mavinakayanahalli --- 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]); }