On 06/24/14 09:29, Gao, Liming wrote:
> Jordan:
> 
>  When I use GCC build OVMF IA32 platform, the error that ‘FwhInstance’
> may be used uninitialized in function ‘FvbSetVolumeAttributes’ will be
> reported in OvmfPkg/QemuFlashFvbServicesRuntimeDxe. This patch fixes it.
> Please help review it.
> 
>  
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> 
> Signed-off-by: Gao, Liming <[email protected]>
> 
>  
> 
> Thanks
> 
> Liming
> 
> 
> FwBlockService.c.patch
> 
> 
> Index: QemuFlashFvbServicesRuntimeDxe/FwBlockService.c
> ===================================================================
> --- QemuFlashFvbServicesRuntimeDxe/FwBlockService.c   (revision 15327)
> +++ QemuFlashFvbServicesRuntimeDxe/FwBlockService.c   (working copy)
> @@ -197,6 +197,7 @@
>  {
>    EFI_FW_VOL_INSTANCE *FwhRecord;
>  
> +  *FwhInstance = NULL;
>    if (Instance >= Global->NumFv) {
>      return EFI_INVALID_PARAMETER;
>    }
> 
> 
> 
> ------------------------------------------------------------------------------

Reviewed-by: Laszlo Ersek <[email protected]>


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to