diff options
Diffstat (limited to 'fs/ecryptfs/crypto.c')
-rw-r--r-- | fs/ecryptfs/crypto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index 520783b205a1..931f715827ac 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c | |||
@@ -1763,7 +1763,7 @@ ecryptfs_process_key_cipher(struct crypto_blkcipher **key_tfm, | |||
1763 | if (IS_ERR(*key_tfm)) { | 1763 | if (IS_ERR(*key_tfm)) { |
1764 | rc = PTR_ERR(*key_tfm); | 1764 | rc = PTR_ERR(*key_tfm); |
1765 | printk(KERN_ERR "Unable to allocate crypto cipher with name " | 1765 | printk(KERN_ERR "Unable to allocate crypto cipher with name " |
1766 | "[%s]; rc = [%d]\n", cipher_name, rc); | 1766 | "[%s]; rc = [%d]\n", full_alg_name, rc); |
1767 | goto out; | 1767 | goto out; |
1768 | } | 1768 | } |
1769 | crypto_blkcipher_set_flags(*key_tfm, CRYPTO_TFM_REQ_WEAK_KEY); | 1769 | crypto_blkcipher_set_flags(*key_tfm, CRYPTO_TFM_REQ_WEAK_KEY); |
@@ -1776,7 +1776,8 @@ ecryptfs_process_key_cipher(struct crypto_blkcipher **key_tfm, | |||
1776 | rc = crypto_blkcipher_setkey(*key_tfm, dummy_key, *key_size); | 1776 | rc = crypto_blkcipher_setkey(*key_tfm, dummy_key, *key_size); |
1777 | if (rc) { | 1777 | if (rc) { |
1778 | printk(KERN_ERR "Error attempting to set key of size [%zd] for " | 1778 | printk(KERN_ERR "Error attempting to set key of size [%zd] for " |
1779 | "cipher [%s]; rc = [%d]\n", *key_size, cipher_name, rc); | 1779 | "cipher [%s]; rc = [%d]\n", *key_size, full_alg_name, |
1780 | rc); | ||
1780 | rc = -EINVAL; | 1781 | rc = -EINVAL; |
1781 | goto out; | 1782 | goto out; |
1782 | } | 1783 | } |