SWDEV-508590 - Fix segfault issue with hipModuleLoad

- Ensuring devProgram pointer isn't nullptr

Change-Id: Ia5786d0a2441f3a512d79b4998eb314beb98b35e


[ROCm/clr commit: f76733e5b8]
이 커밋은 다음에 포함됨:
Pengda Xie
2025-01-13 21:31:25 -08:00
커밋한 사람 Pengda Xie
부모 ac32b2e77e
커밋 86921cd750
+1 -1
파일 보기
@@ -132,7 +132,7 @@ int32_t Program::addDeviceProgram(Device& device, const void* image, size_t leng
Device& rootDev = device;
// if the rootDev is already associated with a program
if (devicePrograms_[&rootDev] != NULL) {
if (getDeviceProgram(rootDev) != NULL) {
return CL_SUCCESS;
}