From c329b548ebf5c110782d90d55e1a8a9bebbaf18b Mon Sep 17 00:00:00 2001 From: "Patel, Jaydeepkumar" Date: Fri, 1 Aug 2025 14:41:40 +0530 Subject: [PATCH] =?UTF-8?q?SWDEV-541799=20-=20Return=20hipSuccess=20from?= =?UTF-8?q?=20hipFreeAsync=20if=20ptr=20to=20free=20is=20=E2=80=A6=20(#683?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SWDEV-541799 - Return hipSuccess from hipFreeAsync if ptr to free is nullptr to match with hipFree. --- hipamd/src/hip_mempool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_mempool.cpp b/hipamd/src/hip_mempool.cpp index 114c793dbc..cde58c07cf 100644 --- a/hipamd/src/hip_mempool.cpp +++ b/hipamd/src/hip_mempool.cpp @@ -162,7 +162,7 @@ hipError_t hipFreeAsync(void* dev_ptr, hipStream_t stream) { } if (dev_ptr == nullptr) { - HIP_RETURN(hipErrorInvalidValue); + HIP_RETURN(hipSuccess); } STREAM_CAPTURE(hipFreeAsync, stream, dev_ptr);