X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=SecurityPkg%2FTcg%2FOpal%2FOpalPassword%2FOpalDriver.c;fp=SecurityPkg%2FTcg%2FOpal%2FOpalPassword%2FOpalDriver.c;h=965205c0b22447f46a6070018eed23a04379f0d5;hb=46e696088a0a6473b3a7e5ff9dd5952fb99eb9aa;hp=009a97f66fac1eece091e7ae9dcee525b4ec6e8f;hpb=539a6c931884b6c67e9fb479771001fa3318884a;p=mirror_edk2.git diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c index 009a97f66f..965205c0b2 100644 --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c @@ -458,6 +458,11 @@ SendBlockSidCommand ( DEBUG ((DEBUG_ERROR, "OpalBlockSid fail\n")); break; } + + // + // Record BlockSID command has been sent. + // + Itr->OpalDisk.SentBlockSID = TRUE; } Itr = Itr->Next; @@ -2204,6 +2209,12 @@ ProcessOpalRequest ( ProcessOpalRequestEnableFeature (Dev, L"Enable Feature:"); } + // + // Update Device ownership. + // Later BlockSID command may block the update. + // + OpalDiskUpdateOwnerShip (&Dev->OpalDisk); + break; }