osapi: Fix dereferencing NULL pNumaMemSize in rm_get_gpu_numa_info

Copy paste error.

Closes: #55
This commit is contained in:
Joshua Ashton 2022-05-12 05:33:47 +00:00 committed by Andy Ritger
parent 9aea50f52f
commit dcdb0c9a7e

View File

@ -4638,7 +4638,7 @@ NV_STATUS NV_API_CALL rm_get_gpu_numa_info(
void *fp;
NV_STATUS status = NV_OK;
if ((pNid == NULL) || (pNumaMemAddr == NULL) || (pNumaMemAddr == NULL))
if ((pNid == NULL) || (pNumaMemAddr == NULL) || (pNumaMemSize == NULL))
{
return NV_ERR_INVALID_ARGUMENT;
}