Skip to content

Commit

Permalink
[TIPC]: Add missing unlock in port timeout code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed Oct 19, 2006
1 parent ce9e3d9 commit 065fd17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 065fd17

Please sign in to comment.