((*NumberOfBytes % gCacheAlignment) != 0)) {\r
\r
// Get the cacheability of the region\r
- Status = gDS->GetMemorySpaceDescriptor (HostAddress, &GcdDescriptor);\r
+ Status = gDS->GetMemorySpaceDescriptor (*DeviceAddress, &GcdDescriptor);\r
if (EFI_ERROR(Status)) {\r
return Status;\r
}\r