From e46733affea9954367cf26ea7f4a07aae26601ee Mon Sep 17 00:00:00 2001 From: Rahul Manocha Date: Fri, 13 Sep 2024 17:20:48 -0700 Subject: [PATCH] SWDEV-439234 - Fix for Segfault in ValidateMemAccess Change-Id: I251d277eb5af16ba5c0de85ffd142a5f64fa469d [ROCm/clr commit: 07261002b19c2322c4f639fb842b57d47e25771d] --- projects/clr/rocclr/device/rocm/rocdevice.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/device/rocm/rocdevice.hpp b/projects/clr/rocclr/device/rocm/rocdevice.hpp index bc1f5a5383..4b1b384840 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.hpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.hpp @@ -484,7 +484,7 @@ class Device : public NullDevice { virtual bool SetMemAccess(void* va_addr, size_t va_size, VmmAccess access_flags); virtual bool GetMemAccess(void* va_addr, VmmAccess* access_flags_ptr) const; - virtual bool ValidateMemAccess(amd::Memory& mem, bool read_write) { return true; } + virtual bool ValidateMemAccess(amd::Memory& mem, bool read_write) const { return true; } virtual bool ExportShareableVMMHandle(amd::Memory& amd_mem_obj, int flags, void* shareableHandle);