Skip to content

Commit 46e0317

Browse files
Remove possibility of accessing directly USM device memory in debug logs
clEnqueueSVMMemFill() is utilized by clEnqueueMemFillINTEL(). The latter may receive USM device pointers. If anyone passed such pointer then SEGMENTATION_FAULT would occur. Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
1 parent 6175a3e commit 46e0317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencl/source/api/api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4740,7 +4740,7 @@ cl_int CL_API_CALL clEnqueueSVMMemFill(cl_command_queue commandQueue,
47404740
API_ENTER(&retVal);
47414741

47424742
DBG_LOG_INPUTS("commandQueue", commandQueue,
4743-
"svmPtr", NEO::fileLoggerInstance().infoPointerToString(svmPtr, size),
4743+
"svmPtr", svmPtr,
47444744
"pattern", NEO::fileLoggerInstance().infoPointerToString(pattern, patternSize),
47454745
"patternSize", patternSize,
47464746
"size", size,

0 commit comments

Comments
 (0)