aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/tipc/port.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c
index 1b20b963a2fc..ab0a8e97e315 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -539,14 +539,15 @@ void tipc_port_recv_proto_msg(struct sk_buff *buf)
539 if (!p_ptr || !p_ptr->connected || 539 if (!p_ptr || !p_ptr->connected ||
540 (port_peernode(p_ptr) != orignode) || 540 (port_peernode(p_ptr) != orignode) ||
541 (port_peerport(p_ptr) != origport)) { 541 (port_peerport(p_ptr) != origport)) {
542 r_buf = port_build_proto_msg(origport, 542 r_buf = tipc_buf_acquire(BASIC_H_SIZE);
543 orignode, 543 if (r_buf) {
544 destport, 544 msg = buf_msg(r_buf);
545 tipc_own_addr, 545 tipc_msg_init(msg, TIPC_HIGH_IMPORTANCE, TIPC_CONN_MSG,
546 TIPC_HIGH_IMPORTANCE, 546 BASIC_H_SIZE, orignode);
547 TIPC_CONN_MSG, 547 msg_set_errcode(msg, TIPC_ERR_NO_PORT);
548 TIPC_ERR_NO_PORT, 548 msg_set_origport(msg, destport);
549 0); 549 msg_set_destport(msg, origport);
550 }
550 if (p_ptr) 551 if (p_ptr)
551 tipc_port_unlock(p_ptr); 552 tipc_port_unlock(p_ptr);
552 goto exit; 553 goto exit;