瀏覽代碼

RDMA/nes: Resource not freed for REJECTed connections

During testing of REJECT connection error handling, we saw that the
cm_id resources are not released.  When the retransmit timer expires,
we need to send a reset message to remote node before issuing the
ABORTED event.

Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Faisal Latif 15 年之前
父節點
當前提交
69524e1aff
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/infiniband/hw/nes/nes_cm.c

+ 2 - 0
drivers/infiniband/hw/nes/nes_cm.c

@@ -513,6 +513,8 @@ static void nes_retrans_expired(struct nes_cm_node *cm_node)
 		send_reset(cm_node, NULL);
 		break;
 	default:
+		add_ref_cm_node(cm_node);
+		send_reset(cm_node, NULL);
 		create_event(cm_node, NES_CM_EVENT_ABORTED);
 	}
 }