mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
298bf12ddb
commit
013820a360
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue