]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ecryptfs/crypto.c
eCryptfs: Handle unrecognized tag 3 cipher codes
[net-next-2.6.git] / fs / ecryptfs / crypto.c
index 931f715827ac85f6d87ada5b175113b98badaa08..f92370aa57041dcdf1578992722e8bcbab2cb952 100644 (file)
@@ -795,6 +795,7 @@ int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat)
        kfree(full_alg_name);
        if (IS_ERR(crypt_stat->tfm)) {
                rc = PTR_ERR(crypt_stat->tfm);
+               crypt_stat->tfm = NULL;
                ecryptfs_printk(KERN_ERR, "cryptfs: init_crypt_ctx(): "
                                "Error initializing cipher [%s]\n",
                                crypt_stat->cipher);