SWDEV-508590 - Fix segfault issue with hipModuleLoad

- Ensuring devProgram pointer isn't nullptr

Change-Id: Ia5786d0a2441f3a512d79b4998eb314beb98b35e
이 커밋은 다음에 포함됨:
Pengda Xie 작성하고 Pengda Xie가 2025-01-21 11:38:37 -05:00를 커밋함
1 부모 e4ba0b6262
커밋 f76733e5b8
1 파일이 변경됨
+1 -1
+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;
}