UEFI Sct validates Dma mapping. For CoherentDmaLib it always failed
because there were no required checks present in DmaMap.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
OUT VOID **Mapping\r
)\r
{\r
+ if (HostAddress == NULL ||\r
+ NumberOfBytes == NULL ||\r
+ DeviceAddress == NULL ||\r
+ Mapping == NULL ) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
*DeviceAddress = HostToDeviceAddress (HostAddress);\r
*Mapping = NULL;\r
return EFI_SUCCESS;\r