From: Cyrill Gorcunov Date: Fri, 23 May 2008 20:04:20 +0000 (-0700) Subject: ecryptfs: fix missed mutex_unlock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=71fd5179e8d1d4d503b517e0c5374f7c49540bfc;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ecryptfs: fix missed mutex_unlock Cc: Michael Halcrow Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index cd62d75b2cc0..e2832bc7869a 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c @@ -1906,9 +1906,9 @@ int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_blkcipher **tfm, goto out; } } - mutex_unlock(&key_tfm_list_mutex); (*tfm) = key_tfm->key_tfm; (*tfm_mutex) = &key_tfm->key_tfm_mutex; out: + mutex_unlock(&key_tfm_list_mutex); return rc; }