Skip to content

Commit

Permalink
Phonet: fix mutex imbalance
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rémi Denis-Courmont authored and davem330 committed Sep 30, 2009
1 parent 298bf12 commit 013820a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/phonet/socket.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 013820a

Please sign in to comment.