audk/EmulatorPkg
Paulo Alcantara dda74d6d62 EmulatorPkg/EmuSimpleFileSystemDxe: Fix incorrect return values upon allocation failure
In EmuSimpleFileSystemOpenVolume() function - in case an allocation failed
with AllocatePool() - EFI_UNSUPPORTED was being returned instead of
EFI_OUT_OF_RESOURCES, which is incorrect.

Even worse, in EmuSimpleFileSystemDriverBindingStart(), an unitiliasied
variable (Status) will be returned in case of an allocation failure with
AllocateZeroPool().

This patch fixes both issues by correctly returning EFI_OUT_OF_RESOURCES.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15615 6f19259b-4bc3-4df7-8a09-765794883524
2014-07-03 20:05:22 +00:00
..
AutoScanPei EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
BootModePei EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
CpuRuntimeDxe EmulatorPkg/CpuRuntimeDxe: Fix typos in MpService 2014-06-27 07:30:21 +00:00
EmuBlockIoDxe EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
EmuBusDriverDxe EmulatorPkg: Fix bug with missing &. Causes a link failure on TOT clang. 2011-07-15 19:01:16 +00:00
EmuGopDxe Fix comparisons of enumerated types which may cause warnings for some compilers. 2012-08-28 06:48:28 +00:00
EmuSimpleFileSystemDxe EmulatorPkg/EmuSimpleFileSystemDxe: Fix incorrect return values upon allocation failure 2014-07-03 20:05:22 +00:00
EmuSnpDxe Fix bug in SNP driver where default values for SNP mode are not filled in. This causes ARP and other drivers to fail to bind as they don't think it is an ethernet connection. Mode structure is filled via lazy update, so defaults need some genericly valid info, not zero. 2012-01-11 19:00:26 +00:00
EmuThunkDxe EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
FirmwareVolumePei EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
FlashMapPei EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
FvbServicesRuntimeDxe Add Missing invocations to VA_END() for VA_START(). 2012-02-01 06:06:08 +00:00
Include Fix case sensativity issues. 2012-02-01 07:06:12 +00:00
Library Update PeiServicesTablePointerLib instance to add new API MigratePeiServicesTablePointer 2014-01-16 02:42:17 +00:00
MiscSubClassPlatformDxe Append double-null for Type 19 data record. 2012-02-03 07:48:57 +00:00
PlatformSmbiosDxe EmulatorPkg/PlatformSmbiosDxe: Fix build issue with UNIXGCC 2012-08-28 21:21:57 +00:00
RealTimeClockRuntimeDxe EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
ResetRuntimeDxe EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
Sec EmulatorPkg: Fix Visual Studio build for IA32 & X64 2012-08-15 00:03:25 +00:00
ThunkPpiToProtocolPei EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
TimerDxe EmulatorPkg: Fix Visual Studio build for IA32 & X64 2012-08-15 00:03:25 +00:00
Unix EmulatorPkg/Unix GCC: Add additional library search paths 2014-04-15 23:53:35 +00:00
Contributions.txt EDK II Packages: Add Contributions.txt and License.txt files 2012-04-11 23:19:46 +00:00
EmulatorPkg.dec Add a new SMBIOS Library, and platform SMBIOS driver that does not use Framework or Hii. 2012-01-30 18:57:30 +00:00
EmulatorPkg.dsc EmulatorPkg: Add missing DisplayEngineDxe driver 2014-04-15 23:53:19 +00:00
EmulatorPkg.fdf EmulatorPkg: Add missing DisplayEngineDxe driver 2014-04-15 23:53:19 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
README EmulatorPkg: Add README file 2011-06-29 16:30:51 +00:00
build.sh EmulatorPkg: Support GCC47 toolchain 2012-08-13 17:06:39 +00:00

README

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


=== EmulatorPkg Overview ===

EmulatorPkg provides an environment where a UEFI environment can be
emulated under an environment where a full UEFI compatible
environment is not possible.  (For example, running under an OS
where an OS process hosts the UEFI emulation environment.)

http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EmulatorPkg

=== Status ===

* Builds and runs under a posix-like environment with X windows
  - Linux
  - OS X

=== Future Plans ===

* Win32 and Win64 support

=== Build Scripts ===

On systems with the bash shell you can use EmulatorPkg/build.sh to simplify
building and running EmulatorPkg.

For example, to build + run:
$ EmulatorPkg/build.sh
$ EmulatorPkg/build.sh run

The build architecture will match your host machine's architecture.

On X64 host machines, you can build + run IA32 mode as well:
$ EmulatorPkg/build.sh -a IA32
$ EmulatorPkg/build.sh -a IA32 run