summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2012-12-17 00:51:30 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-12-17 01:44:56 +0100
commit317b9f00658cf5cb3bcb3e444349278388622f60 (patch)
tree37493c24913e62967702f5ffa39662e8883ae79c /libdiskfs
parentb695ccc3e351e589efd30b5ac420bac09d7959d9 (diff)
Fix double call to pthread_mutex_unlock in diskfs_S_ifsock_getsockaddr.
* libdiskfs/ifsock.c (diskfs_S_ifsock_getsockaddr): remove a redundant call to pthread_mutex_unlock.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/ifsock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libdiskfs/ifsock.c b/libdiskfs/ifsock.c
index 1da81b85..9199fdf6 100644
--- a/libdiskfs/ifsock.c
+++ b/libdiskfs/ifsock.c
@@ -102,10 +102,7 @@ diskfs_S_ifsock_getsockaddr (struct protid *cred,
goto retry;
}
if (err)
- {
- pthread_mutex_unlock (&np->lock);
- return EIEIO;
- }
+ return EIEIO;
pthread_mutex_lock (&np->lock);
if (np->sockaddr != MACH_PORT_NULL)