]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ecryptfs/messaging.c
ecryptfs: fix unlocking in error paths
[net-next-2.6.git] / fs / ecryptfs / messaging.c
index a96d341d154d0d0082047ca291632bd4002a7ac9..9cc2aec27b0dc5b8de698dd8779b0cb4e70682b8 100644 (file)
@@ -427,6 +427,7 @@ int ecryptfs_init_messaging(unsigned int transport)
        if (!ecryptfs_daemon_id_hash) {
                rc = -ENOMEM;
                ecryptfs_printk(KERN_ERR, "Failed to allocate memory\n");
+               mutex_unlock(&ecryptfs_daemon_id_hash_mux);
                goto out;
        }
        for (i = 0; i < ecryptfs_hash_buckets; i++)