From f4465ffeab685a5820507e9e07ec132326fac02a Mon Sep 17 00:00:00 2001 From: zhangchenyang Date: Wed, 4 Dec 2024 07:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90master=E3=80=91=E3=80=90storage=5Fserv?= =?UTF-8?q?ice=E3=80=91=E4=BC=98=E5=8C=96=E8=90=BD=E7=9B=98=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangchenyang --- services/storage_daemon/crypto/src/fscrypt_key_v1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/storage_daemon/crypto/src/fscrypt_key_v1.cpp b/services/storage_daemon/crypto/src/fscrypt_key_v1.cpp index 73016b05..2307a4b3 100644 --- a/services/storage_daemon/crypto/src/fscrypt_key_v1.cpp +++ b/services/storage_daemon/crypto/src/fscrypt_key_v1.cpp @@ -426,13 +426,13 @@ bool FscryptKeyV1::InactiveKey(uint32_t flag, const std::string &mnt) { (void)mnt; LOGI("enter"); - bool ret = true; + DropCachesIfNeed(); + bool ret = true; if (!keyInfo_.keyDesc.IsEmpty() && !UninstallKeyToKeyring()) { LOGE("UninstallKeyToKeyring failed"); ret = false; } - DropCachesIfNeed(); if (!fscryptV1Ext.InactiveKeyExt(flag)) { LOGE("fscryptV1Ext InactiveKeyExt failed"); ret = false; -- Gitee