From 027f71ccfbb18012ed633f9555c438165453b17a Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Tue, 20 Dec 2022 11:37:49 +0000 Subject: [PATCH] SWDEV-374395 - Correct rhs. Change-Id: I433d60344a6d23bc48f4db58d5501af89bc1989c --- 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 00264a6589..2b2cf24272 100644 --- a/hipamd/src/hip_memory.cpp +++ b/hipamd/src/hip_memory.cpp @@ -2012,7 +2012,7 @@ hipError_t ihipGetMemcpyParam3DCommand(amd::Command*& command, const HIP_MEMCPY3 amd::Memory* mem = amd::MemObjMap::FindMemObj(pCopy->dstHost); dstMemoryType = mem ? hipMemoryTypeDevice : hipMemoryTypeHost; if (dstMemoryType == hipMemoryTypeDevice) { - const_cast(pCopy)->dstDevice = const_cast(pCopy->dstDevice); + const_cast(pCopy)->dstDevice = const_cast(pCopy->dstHost); } }