SWDEV-373235 - Fixed segfault when nullptr function is passed to hipKernelNameRef
Change-Id: If23fbbd19ad92fd0b3fa888dca09e7fe705c0c56
[ROCm/clr commit: 1274f2a54c]
这个提交包含在:
1 父节点
09b894eeef
当前提交
f1407eb433
1 个文件已更改
+1
-1
@@ -38,7 +38,7 @@ int hipGetStreamDeviceId(hipStream_t stream) {
|
||||
}
|
||||
|
||||
const char* hipKernelNameRef(const hipFunction_t function) {
|
||||
return FunctionName(function).c_str();
|
||||
return (function != nullptr) ? FunctionName(function).c_str() : nullptr;
|
||||
}
|
||||
|
||||
const char* hipKernelNameRefByPtr(const void* host_function, hipStream_t stream) {
|
||||
|
||||
在新工单中引用
屏蔽一个用户