SWDEV-508590 - Fix segfault issue with hipModuleLoad

- Ensuring devProgram pointer isn't nullptr

Change-Id: Ia5786d0a2441f3a512d79b4998eb314beb98b35e
This commit is contained in:
Pengda Xie authored and Pengda Xie committed 2025-01-21 11:38:37 -05:00
1 orang tua e4ba0b6262
melakukan f76733e5b8
1 file changed
+1 -1
+1 -1
Melihat File
@@ -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;
}