bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_loo


From: Cyril Roelandt
Subject: [PATCH 5/7] Fix double call to pthread_mutex_unlock in _treefs_s_dir_lookup.
Date: Mon, 17 Dec 2012 00:51:28 +0100

* libtreefs/dir-lookup.c (_treefs_s_dir_lookup): remove a redundant call to
pthread_mutex_unlock.

Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
---
 libtreefs/dir-lookup.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libtreefs/dir-lookup.c b/libtreefs/dir-lookup.c
index ce2acaf..41c34ea 100644
--- a/libtreefs/dir-lookup.c
+++ b/libtreefs/dir-lookup.c
@@ -199,7 +199,6 @@ _treefs_s_dir_lookup (struct treefs_handle *h,
             in the right order. */
          if (strcmp (path, "..") != 0)
            {
-             pthread_mutex_unlock (&node->lock);
              pthread_mutex_lock (&dir->lock);
              pthread_mutex_lock (&node->lock);
            }
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]