ecryptfs: fix missed mutex_unlock
Cc: Michael Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
03fb0bce01
commit
71fd5179e8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user