SWDEV-508590 - Fix segfault issue with hipModuleLoad

- Ensuring devProgram pointer isn't nullptr

Change-Id: Ia5786d0a2441f3a512d79b4998eb314beb98b35e
This commit is contained in:
Pengda Xie
2025-01-13 21:31:25 -08:00
کامیت شده توسط Pengda Xie
والد e4ba0b6262
کامیت f76733e5b8
+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;
}