Skip to content

Commit dcdb0c9

Browse files
misyltoadaritger
authored andcommitted
osapi: Fix dereferencing NULL pNumaMemSize in rm_get_gpu_numa_info
Copy paste error. Closes: #55
1 parent 9aea50f commit dcdb0c9

File tree

1 file changed

+1
-1
lines changed
  • src/nvidia/arch/nvalloc/unix/src

1 file changed

+1
-1
lines changed

src/nvidia/arch/nvalloc/unix/src/osapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4638,7 +4638,7 @@ NV_STATUS NV_API_CALL rm_get_gpu_numa_info(
46384638
void *fp;
46394639
NV_STATUS status = NV_OK;
46404640

4641-
if ((pNid == NULL) || (pNumaMemAddr == NULL) || (pNumaMemAddr == NULL))
4641+
if ((pNid == NULL) || (pNumaMemAddr == NULL) || (pNumaMemSize == NULL))
46424642
{
46434643
return NV_ERR_INVALID_ARGUMENT;
46444644
}

0 commit comments

Comments
 (0)