From: Faisal Latif Date: Wed, 9 Dec 2009 23:54:18 +0000 (-0800) Subject: RDMA/nes: Fix Xansation test crash on cm_node ref_count X-Git-Tag: v2.6.33-rc1~60^2^10~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=886f98a31586fd560fe83c44ad72e3ebe62f8e2e;p=pandora-kernel.git RDMA/nes: Fix Xansation test crash on cm_node ref_count While running a Xansation test, an active side node crashed. The problem started on the passive side, which generated an STtag that was 0. The passive side sent a TERMINATE instead of an MPA REJECT msg. The active side, receives TERMINATE and sends connect_err() and set the cm_node state to CLOSED. The passive side sends FIN + ACK after TERMINATE. Active side ends up in handle_ack_pkt() and send_reset(). send_reset() consumes 1 cm_node's ref_count. Because the cm_node is in CLOSED state, which means that cm_node will be destroyed after completion of the connect_err() indication, CM will crash after send_reset(). Signed-off-by: Faisal Latif Signed-off-by: Roland Dreier --- Reading git-diff-tree failed