Skip to contentSkip to conversation

Phonet: fix mutex imbalance

PATCH Applied Rémi Denis-Courmont 2 participants 2 messages Sep 29, 2009 – Sep 30, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Phonet: fix mutex imbalance

From: Rémi Denis-Courmont <[email protected]>

port_mutex was unlocked twice.

---
 net/phonet/socket.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
net/phonet/socket.c +0 -1
index 07aa9f0..aa5b5a9 100644
@@ -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;
 }
Signature · 1 line
1.6.0.4