mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS:CM] Do not acquire a KCB lock twice when deleting a key object
This prevents a deadlock in DelistKeyBodyFromKCB when we delete a key object because of an access check failure during a open procedure of a registry key, as we are already holding a lock against the target KCB of the key body.
This commit is contained in:
parent
697a52aa33
commit
7fd6f86803
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ CmpDeleteKeyObject(PVOID DeletedObject)
|
|||
if (Kcb)
|
||||
{
|
||||
/* Delist the key */
|
||||
DelistKeyBodyFromKCB(KeyBody, FALSE);
|
||||
DelistKeyBodyFromKCB(KeyBody, KeyBody->KcbLocked);
|
||||
|
||||
/* Dereference the KCB */
|
||||
CmpDelayDerefKeyControlBlock(Kcb);
|
||||
|
|
Loading…
Reference in a new issue