diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-09-30 19:41:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-30 19:41:34 -0400 |
commit | 013820a360b63a0a18fa13afb858b9f1af7e64fe (patch) | |
tree | b7e0703832b661246b70943f12c90f6c5407f282 | |
parent | 298bf12ddb25841804f26234a43b89da1b1c0e21 (diff) |
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>
-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) | |||
407 | return -EADDRINUSE; | 407 | return -EADDRINUSE; |
408 | 408 | ||
409 | found: | 409 | found: |
410 | mutex_unlock(&port_mutex); | ||
411 | pn->sobject = pn_object(pn_addr(pn->sobject), sport); | 410 | pn->sobject = pn_object(pn_addr(pn->sobject), sport); |
412 | return 0; | 411 | return 0; |
413 | } | 412 | } |