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 Liam Middlebrook
parent 23f33d8e6d
commit c7d822bc16

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;
}