Commit 71fd5179 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Linus Torvalds

ecryptfs: fix missed mutex_unlock

Cc: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 03fb0bce
...@@ -1906,9 +1906,9 @@ int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_blkcipher **tfm, ...@@ -1906,9 +1906,9 @@ int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_blkcipher **tfm,
goto out; goto out;
} }
} }
mutex_unlock(&key_tfm_list_mutex);
(*tfm) = key_tfm->key_tfm; (*tfm) = key_tfm->key_tfm;
(*tfm_mutex) = &key_tfm->key_tfm_mutex; (*tfm_mutex) = &key_tfm->key_tfm_mutex;
out: out:
mutex_unlock(&key_tfm_list_mutex);
return rc; return rc;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment