]> git.proxmox.com Git - mirror_edk2.git/commit
EmbeddedPkg/NonCoherentDmaLib: Avoid dereferencing unset Map field
authorJeremy Linton <jeremy.linton@arm.com>
Fri, 13 Aug 2021 05:05:08 +0000 (00:05 -0500)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 17 Aug 2021 14:01:19 +0000 (14:01 +0000)
commitef56f55d19e1b0b4ba6f9b28d73165c7f0a4627c
tree15a4d69210d9086bb187f4a0628b1dc59a5db69e
parent6fdd1c13a734609aff68d37e606e995d673d9aeb
EmbeddedPkg/NonCoherentDmaLib: Avoid dereferencing unset Map field

Map->Operation is used to select whether a DMA region that
is being bounced has the source buffer copied to it. Except
Map->Operation isn't yet set, so the behavior is somewhat
random. Instead use the passed in Operation parameter.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.c