mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2025-02-18 00:54:19 +01:00
osapi: Fix dereferencing NULL pNumaMemSize in rm_get_gpu_numa_info
Copy paste error. Closes: #55
This commit is contained in:
parent
9aea50f52f
commit
dcdb0c9a7e
@ -4638,7 +4638,7 @@ NV_STATUS NV_API_CALL rm_get_gpu_numa_info(
|
|||||||
void *fp;
|
void *fp;
|
||||||
NV_STATUS status = NV_OK;
|
NV_STATUS status = NV_OK;
|
||||||
|
|
||||||
if ((pNid == NULL) || (pNumaMemAddr == NULL) || (pNumaMemAddr == NULL))
|
if ((pNid == NULL) || (pNumaMemAddr == NULL) || (pNumaMemSize == NULL))
|
||||||
{
|
{
|
||||||
return NV_ERR_INVALID_ARGUMENT;
|
return NV_ERR_INVALID_ARGUMENT;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user