Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5259f8b0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "fs: crypto: Fix the memory leak while eviction of inode"

parents 885fd0dc 9673f6f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -482,6 +482,7 @@ static void put_crypt_info(struct fscrypt_info *ci)
		    FSCRYPT_MODE_PRIVATE) {
			fscrypt_destroy_prepared_key(&ci->ci_key);
		} else {
			crypto_free_skcipher(ci->ci_key.tfm);
#ifdef CONFIG_FS_ENCRYPTION_INLINE_CRYPT
			if (ci->ci_key.blk_key)
				kzfree(ci->ci_key.blk_key);