This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EmbeddedPkg/NonCoherentDmaLib: avoid dereferencing bogus buffer address
The bounce buffering code in NonCoherentDmaLib copies data into the bounce buffer using CopyMem(), but passes Map->HostAddress as the source of the copy before it has been assigned its correct value. Signed-off-by: Ard Biesheuvel <email@example.com> Reviewed-by: Leif Lindholm <firstname.lastname@example.org> Reviewed-by: Andrei Warkentin <email@example.com>
- Loading branch information
Showing 1 changed file with 1 addition and 2 deletions.