Skip to content

Commit

Permalink
[SYCL][NFC] Fix a null dereference Coverity hit (#15442)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-semenov authored Sep 19, 2024
1 parent 9c3998c commit b6327e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sycl/source/detail/scheduler/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3192,6 +3192,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
HostTask->MHostTask->MInteropTask};

ur_bool_t NativeCommandSupport = false;
assert(MQueue && "Native command should have an associated queue");
MQueue->getPlugin()->call<UrApiKind::urDeviceGetInfo>(
detail::getSyclObjImpl(MQueue->get_device())->getHandleRef(),
UR_DEVICE_INFO_ENQUEUE_NATIVE_COMMAND_SUPPORT_EXP,
Expand Down

0 comments on commit b6327e8

Please sign in to comment.