[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/7] Fix double call to pthread_mutex_unlock in diskfs_S_ifsock_g
From: |
Cyril Roelandt |
Subject: |
[PATCH 7/7] Fix double call to pthread_mutex_unlock in diskfs_S_ifsock_getsockaddr. |
Date: |
Mon, 17 Dec 2012 00:51:30 +0100 |
* libdiskfs/ifsock.c (diskfs_S_ifsock_getsockaddr): remove a redundant call to
pthread_mutex_unlock.
Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
---
libdiskfs/ifsock.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libdiskfs/ifsock.c b/libdiskfs/ifsock.c
index 1da81b8..9199fdf 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)
--
1.7.10.4
- [PATCH 4/7] Fix double call to pthread_mutex_unlock in S_socket_connect., (continued)
[PATCH 6/7] Fix double call to pthread_mutex_unlock in diskfs_rename_dir()., Cyril Roelandt, 2012/12/16
[PATCH 7/7] Fix double call to pthread_mutex_unlock in diskfs_S_ifsock_getsockaddr.,
Cyril Roelandt <=