diff mbox series

keys: Print more useful debug info if encryption algo is not available

Message ID 20200825215040.307947-1-anatol.pomozov@gmail.com (mailing list archive)
State New
Headers show
Series keys: Print more useful debug info if encryption algo is not available | expand

Commit Message

Anatol Pomozov Aug. 25, 2020, 9:50 p.m. UTC
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
---
 security/keys/encrypted-keys/encrypted.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mimi Zohar Sept. 14, 2020, 2:58 p.m. UTC | #1
Hi Anatol,

On Tue, 2020-08-25 at 14:50 -0700, Anatol Pomozov wrote:
> Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>

The subject should be prefixed with "encrypted-keys:".   The patch
description is missing.

Mimi
diff mbox series

Patch

diff --git a/security/keys/encrypted-keys/encrypted.c b/security/keys/encrypted-keys/encrypted.c
index 192e531c146f..c09d48f53682 100644
--- a/security/keys/encrypted-keys/encrypted.c
+++ b/security/keys/encrypted-keys/encrypted.c
@@ -84,8 +84,8 @@  static int aes_get_sizes(void)
 
 	tfm = crypto_alloc_skcipher(blkcipher_alg, 0, CRYPTO_ALG_ASYNC);
 	if (IS_ERR(tfm)) {
-		pr_err("encrypted_key: failed to alloc_cipher (%ld)\n",
-		       PTR_ERR(tfm));
+		pr_err("encrypted_key: failed to alloc_cipher for %s (%ld)\n",
+		       blkcipher_alg, PTR_ERR(tfm));
 		return PTR_ERR(tfm);
 	}
 	ivsize = crypto_skcipher_ivsize(tfm);