From: Allan Stephens Date: Tue, 17 Oct 2006 04:38:05 +0000 (-0700) Subject: [TIPC]: Add missing unlock in port timeout code. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=065fd1772af2032bebdce006071df007c039734d;p=openwrt%2Fstaging%2Fblogic.git [TIPC]: Add missing unlock in port timeout code. Signed-off-by: Allan Stephens Signed-off-by: Per Liden Signed-off-by: David S. Miller --- diff --git a/net/tipc/port.c b/net/tipc/port.c index b9c8c6b9e94f..c1a1a76759b5 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) {