From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5608C81FE9 for ; Mon, 5 Dec 2016 03:41:25 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP; 05 Dec 2016 03:41:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,747,1477983600"; d="scan'208";a="908800650" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga003.jf.intel.com with ESMTP; 05 Dec 2016 03:41:24 -0800 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Eric Dong Date: Mon, 5 Dec 2016 19:40:55 +0800 Message-Id: <1480938055-45116-1-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [patch] MdeModulePkg/SetupBrowserDxe: Fix incorrect local variable used X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2016 11:41:25 -0000 https://bugzilla.tianocore.org/show_bug.cgi?id=280 Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi --- MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index 451fd03..06e682a 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c @@ -3533,10 +3533,11 @@ SubmitForSystem ( VOID ) { EFI_STATUS Status; LIST_ENTRY *Link; + LIST_ENTRY *FormLink; LIST_ENTRY *StorageLink; FORMSET_STORAGE *FormSetStorage; FORM_BROWSER_FORM *Form; FORM_BROWSER_FORMSET *LocalFormSet; UINT32 UserSelection; @@ -3623,14 +3624,14 @@ SubmitForSystem ( FormSetStorage->SyncConfigRequest = NULL; } } } - Link = GetFirstNode (&LocalFormSet->FormListHead); - while (!IsNull (&LocalFormSet->FormListHead, Link)) { - Form = FORM_BROWSER_FORM_FROM_LINK (Link); - Link = GetNextNode (&LocalFormSet->FormListHead, Link); + FormLink = GetFirstNode (&LocalFormSet->FormListHead); + while (!IsNull (&LocalFormSet->FormListHead, FormLink)) { + Form = FORM_BROWSER_FORM_FROM_LINK (FormLink); + FormLink = GetNextNode (&LocalFormSet->FormListHead, FormLink); // // Call callback with Changed type to inform the driver. // SendDiscardInfoToDriver (LocalFormSet, Form); } -- 1.9.5.msysgit.1