]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/ArmDmaLib: deal with NULL return value of UncachedAllocatePages ()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 19 Apr 2016 14:12:10 +0000 (16:12 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 10 May 2016 12:38:59 +0000 (14:38 +0200)
commite55f8c73b6255b353c021ab59017a364dd527a86
treecc5fbb2bb5c2783070f0799e5950fa1c7392ec63
parent9c0dc0b01a79666c3ba8aa0c69ad92131aada113
ArmPkg/ArmDmaLib: deal with NULL return value of UncachedAllocatePages ()

The allocation function UncachedAllocatePages () may return NULL, in
which case our implementation of DmaAllocateBuffer () should return
EFI_OUT_OF_RESOURCES rather than silently ignoring the NULL value and
returning EFI_SUCCESS.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Library/ArmDmaLib/ArmDmaLib.c