mirror of
https://github.com/reactos/reactos.git
synced 2025-07-02 05:41:26 +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)
|
if (Kcb)
|
||||||
{
|
{
|
||||||
/* Delist the key */
|
/* Delist the key */
|
||||||
DelistKeyBodyFromKCB(KeyBody, FALSE);
|
DelistKeyBodyFromKCB(KeyBody, KeyBody->KcbLocked);
|
||||||
|
|
||||||
/* Dereference the KCB */
|
/* Dereference the KCB */
|
||||||
CmpDelayDerefKeyControlBlock(Kcb);
|
CmpDelayDerefKeyControlBlock(Kcb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue