Skip to contentSkip to conversation

Missing patch from stable [4/7]

PATCH Willy Tarreau 1 participant 1 message Jun 8, 2008 Ecrypt file system

lore
Share & tools
lore
#0 lore raw

Hi,

this patch from mainline seems suitable for -stable, but was not proposed for inclusion. I think we should include it for next review unless the author disagrees.

Thanks,
Willy
--

Quoted 1 line

From 71fd5179e8d1d4d503b517e0c5374f7c49540bfc Mon Sep 17 00:00:00 2001

From: Cyrill Gorcunov <[email protected]>
Date: Fri, 23 May 2008 13:04:20 -0700
Subject: ecryptfs: fix missed mutex_unlock

---
 fs/ecryptfs/crypto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ecryptfs/crypto.c +1 -1
index cd62d75..e2832bc 100644
@@ -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;
 }
Signature · 1 line
1.5.3.8