mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-04-27 01:39:01 +00:00
525.60.11
This commit is contained in:
@@ -857,7 +857,8 @@ nv_dma_buf_reuse(
|
||||
goto cleanup_dmabuf;
|
||||
}
|
||||
|
||||
if (params->index > (priv->total_objects - params->numObjects))
|
||||
if ((priv->total_objects < params->numObjects) ||
|
||||
(params->index > (priv->total_objects - params->numObjects)))
|
||||
{
|
||||
status = NV_ERR_INVALID_ARGUMENT;
|
||||
goto unlock_priv;
|
||||
|
||||
Reference in New Issue
Block a user