SWDEV-450204 - hipGetProcAddress check for null corrected

Change-Id: Ic34b0d561d3d70f3411a60924a64c3b89954394f
This commit is contained in:
jiabaxie
2024-03-08 16:29:42 -05:00
committed by Jiabao Xie
parent c13864abed
commit 14bcbcc25b
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -602,11 +602,11 @@ hipError_t hipGetDevicePropertiesR0000(hipDeviceProp_tR0000* prop, int device) {
}
hipError_t hipGetProcAddress(const char* symbol, void** pfn, int hipVersion, uint64_t flags,
hipDriverProcAddressQueryResult* symbolStatus = nullptr) {
hipDriverProcAddressQueryResult* symbolStatus) {
HIP_INIT_API(hipGetProcAddress, symbol, pfn, hipVersion, flags, symbolStatus);
std::string symbolString = symbol;
if(symbol == nullptr || symbolString == "" || *pfn == nullptr){
if(symbol == nullptr || symbolString == "" || pfn == nullptr){
HIP_RETURN(hipErrorInvalidValue);
}