Skip to content

Commit 65edd6b

Browse files
committed
Check if properties param is null in L0 urMemBufferCreateWithNativeHandle and set OwnNativeHandle to false by default.
1 parent d39870b commit 65edd6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/level_zero/memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ ur_result_t urMemBufferCreateWithNativeHandle(
17461746
ur_mem_handle_t
17471747
*Mem ///< [out] pointer to handle of buffer memory object created.
17481748
) {
1749-
bool OwnNativeHandle = Properties->isNativeHandleOwned;
1749+
bool OwnNativeHandle = Properties ? Properties->isNativeHandleOwned : false;
17501750

17511751
std::shared_lock<ur_shared_mutex> Lock(Context->Mutex);
17521752

0 commit comments

Comments
 (0)