Fix potential race condition in _rmapiRmControl

This commit is contained in:
miaotianxiang 2024-06-05 16:17:40 +08:00
parent e45d91de02
commit 9da412a5b2
1 changed files with 0 additions and 7 deletions

View File

@ -427,13 +427,6 @@ _rmapiRmControl(NvHandle hClient, NvHandle hObject, NvU32 cmd, NvP64 pUserParams
}
}
// Potential race condition if run lockless?
if (serverutilGetClientUnderLock(hClient) == NULL)
{
rmStatus = NV_ERR_INVALID_CLIENT;
goto done;
}
// only kernel clients can issue raised IRQL or lock bypass cmds
// bypass client priv check for internal calls done on behalf of lower priv
// clients