mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
ce9e3d9953
commit
065fd1772a
|
@ -505,9 +505,14 @@ 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) {
|
||||
buf = port_build_self_abort_msg(p_ptr, TIPC_ERR_NO_PORT);
|
||||
|
|
Loading…
Reference in New Issue