From 1c49943ac38b02e49772beeeac32b9234e574011 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Wed, 31 Jul 2019 00:28:30 +0530 Subject: [PATCH] Change hipErrorUnknown to hipErrorInvalidValue --- hipamd/src/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_memory.cpp b/hipamd/src/hip_memory.cpp index 2355772fd6..99ea4b5b24 100644 --- a/hipamd/src/hip_memory.cpp +++ b/hipamd/src/hip_memory.cpp @@ -198,7 +198,7 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, const void attributes->isManaged = 0; attributes->allocationFlags = 0; - e = hipErrorUnknown; // TODO - should be hipErrorInvalidValue ? + e = hipErrorInvalidValue; } } return ihipLogStatus(e);