From: Roberto Sassu Date: Mon, 21 Mar 2011 15:00:54 +0000 (+0100) Subject: eCryptfs: move ecryptfs_find_auth_tok_for_sig() call before mutex_lock X-Git-Tag: v2.6.39-rc1~18^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=950983fc04e02232e0d25717903461578a755ebb;p=pandora-kernel.git eCryptfs: move ecryptfs_find_auth_tok_for_sig() call before mutex_lock The ecryptfs_find_auth_tok_for_sig() call is moved before the mutex_lock(s->tfm_mutex) instruction in order to avoid possible deadlocks that may occur by holding the lock on the two semaphores 'key->sem' and 's->tfm_mutex' in reverse order. Signed-off-by: Roberto Sassu Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed