diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-10-01 01:41:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-01 01:41:34 +0200 |
commit | 013820a360b63a0a18fa13afb858b9f1af7e64fe (patch) | |
tree | b7e0703832b661246b70943f12c90f6c5407f282 /net | |
parent | sit: fix off-by-one in ipip6_tunnel_get_prl (diff) | |
download | linux-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')
-rw-r--r-- | net/phonet/socket.c | 1 |
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; } |