summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2006-10-16 21:38:05 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-10-18 19:55:13 -0700
commit065fd1772af2032bebdce006071df007c039734d (patch)
tree62e63dd8273a209542236fe8930d9cca92b0d138 /net
parentce9e3d9953c8cb67001719b5516da2928e956be4 (diff)
downloadop-kernel-dev-065fd1772af2032bebdce006071df007c039734d.zip
op-kernel-dev-065fd1772af2032bebdce006071df007c039734d.tar.gz
[TIPC]: Add missing unlock in port timeout code.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Per Liden <per.liden@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/tipc/port.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c
index b9c8c6b..c1a1a767 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -505,8 +505,13 @@ static void port_timeout(unsigned long ref)
struct port *p_ptr = tipc_port_lock(ref);
struct sk_buff *buf = NULL;
- if (!p_ptr || !p_ptr->publ.connected)
+ if (!p_ptr)
+ return;
+
+ if (!p_ptr->publ.connected) {
+ tipc_port_unlock(p_ptr);
return;
+ }
/* Last probe answered ? */
if (p_ptr->probing_state == PROBING) {
OpenPOWER on IntegriCloud