summaryrefslogtreecommitdiffstats
path: root/net/phonet/socket.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2009-10-01 01:41:34 +0200
committerDavid S. Miller <davem@davemloft.net>2009-10-01 01:41:34 +0200
commit013820a360b63a0a18fa13afb858b9f1af7e64fe (patch)
treeb7e0703832b661246b70943f12c90f6c5407f282 /net/phonet/socket.c
parentsit: fix off-by-one in ipip6_tunnel_get_prl (diff)
downloadlinux-013820a360b63a0a18fa13afb858b9f1af7e64fe.tar.xz
linux-013820a360b63a0a18fa13afb858b9f1af7e64fe.zip
Phonet: fix mutex imbalance
From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> port_mutex was unlocked twice. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/socket.c')
-rw-r--r--net/phonet/socket.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c
index 07aa9f08d5fb..aa5b5a972bff 100644
--- a/net/phonet/socket.c
+++ b/net/phonet/socket.c
@@ -407,7 +407,6 @@ int pn_sock_get_port(struct sock *sk, unsigned short sport)
return -EADDRINUSE;
found:
- mutex_unlock(&port_mutex);
pn->sobject = pn_object(pn_addr(pn->sobject), sport);
return 0;
}