From 317b9f00658cf5cb3bcb3e444349278388622f60 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Mon, 17 Dec 2012 00:51:30 +0100 Subject: 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. --- libdiskfs/ifsock.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libdiskfs') 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) -- cgit v1.2.3