Check fill addresses for alignment.

Check was documented but missing.

Change-Id: I97951635d794fd22e20c25d20e9d0e35035254af


[ROCm/ROCR-Runtime commit: 3357cadeec]
Este cometimento está contido em:
Sean Keely cometeu 2018-09-05 16:34:19 -04:00
1 ascendente a550bf2687
cometimento 01b35916c7
1 ficheiro modificado
+1 -1
@@ -211,7 +211,7 @@ hsa_status_t hsa_amd_memory_fill(void* ptr, uint32_t value, size_t count) {
TRY;
IS_OPEN();
if (ptr == NULL) {
if ((ptr == nullptr) || (uintptr_t(ptr) % 4 != 0)) {
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
}