bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 6/7] Fix double call to pthread_mutex_unlock in diskfs_rename_dir


From: Cyril Roelandt
Subject: [PATCH 6/7] Fix double call to pthread_mutex_unlock in diskfs_rename_dir().
Date: Mon, 17 Dec 2012 00:51:29 +0100

* libdiskfs/dir-renamed.c (diskfs_rename_dir): remove a redundant call to
pthread_mutex_unlock.

Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
---
 libdiskfs/dir-renamed.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c
index 3990b13..7829373 100644
--- a/libdiskfs/dir-renamed.c
+++ b/libdiskfs/dir-renamed.c
@@ -228,8 +228,6 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, 
const char *fromname,
     diskfs_nput (tnp);
   if (fdp && fdp != tdp)
     pthread_mutex_unlock (&fdp->lock);
-  if (fnp)
-    pthread_mutex_unlock (&fnp->lock);
   if (ds)
     diskfs_drop_dirstat (tdp, ds);
   return err;
-- 
1.7.10.4




reply via email to

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