Null check before setting offset
이 커밋은 다음에 포함됨:
1 부모
0ec64e8b24
커밋
f17c897751
1 파일이 변경됨
+2
-1
@@ -676,7 +676,8 @@ hipError_t hipGetTextureAlignmentOffset(size_t* offset, const textureReference*
|
||||
|
||||
auto ctx = ihipGetTlsDefaultCtx();
|
||||
if (ctx) {
|
||||
*offset = 0;
|
||||
if(offset != nullptr)
|
||||
*offset = 0;
|
||||
}
|
||||
return ihipLogStatus(hip_status);
|
||||
}
|
||||
|
||||
새 이슈에서 참조
사용자 차단