Commit 013820a3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by David S. Miller

Phonet: fix mutex imbalance

From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>

port_mutex was unlocked twice.
Signed-off-by: default avatarRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 298bf12d
...@@ -407,7 +407,6 @@ int pn_sock_get_port(struct sock *sk, unsigned short sport) ...@@ -407,7 +407,6 @@ int pn_sock_get_port(struct sock *sk, unsigned short sport)
return -EADDRINUSE; return -EADDRINUSE;
found: found:
mutex_unlock(&port_mutex);
pn->sobject = pn_object(pn_addr(pn->sobject), sport); pn->sobject = pn_object(pn_addr(pn->sobject), sport);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment