Skip to content

Commit

Permalink
[CM] coverity nullptr fix
Browse files Browse the repository at this point in the history
add nullptr check for coverity
  • Loading branch information
jingyansc authored and intel-mediadev committed Nov 24, 2023
1 parent 0eee855 commit 5c2ae6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media_driver/agnostic/common/cm/cm_kernel_rt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ int32_t CmKernelRT::Create(CmDeviceRT *device,
}

#if USE_EXTENSION_CODE
result = kernel->InitForGTPin(device, program, kernel);
if (device)
result = kernel->InitForGTPin(device, program, kernel);
#endif

return result;
Expand Down

0 comments on commit 5c2ae6a

Please sign in to comment.