Skip to contentSkip to conversation

RDMA/nes: Resource not freed for REJECT connection

PATCH In review Faisal Latif 1 participant 1 message Dec 9, 2009 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 4/11 RDMA/nes: Resource not freed for REJECT connection

During testing of REJECT connection error handling, the cm_id resources are not release. When retransmit timer expires, need to send reset message to remote node before sending ABORTED event.

---
 drivers/infiniband/hw/nes/nes_cm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/infiniband/hw/nes/nes_cm.c +2 -0
index ae09463..08fcd25 100644
@@ -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);
 	}
 }
Signature · 6 lines
1.5.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html