SWDEV-271496 - Added missing params check

Change-Id: I17bbf5ed445826e7380df22fa5c6ec1675e208d6


[ROCm/clr commit: b7fd0bc902]
Tento commit je obsažen v:
Sarbojit Sarkar authored and Sarbojit Sarkar committed 2021-02-12 13:28:12 -05:00
1 rodič 125de2dbe6
revize 3c1920f76c
2 files changed
+8 -6

No files matched your search

+3 -1
Zobrazit soubor
@@ -414,7 +414,9 @@ hipError_t hipDeviceGetPCIBusId ( char* pciBusId, int len, int device ) {
hipError_t hipDeviceGetSharedMemConfig ( hipSharedMemConfig * pConfig ) {
HIP_INIT_API(hipDeviceGetSharedMemConfig, pConfig);
if (pConfig == nullptr) {
return HIP_RETURN(hipErrorInvalidValue);
}
*pConfig = hipSharedMemBankSizeFourByte;
HIP_RETURN(hipSuccess);