]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
IB/sdp: fix a crash when child is disconnected while parent is being destroyed
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 4 Sep 2006 07:58:13 +0000 (10:58 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:03:58 +0000 (05:03 -0700)
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_cma.c

index 10f25cfc9b84d00ac59b8be742c395526149274d..a0a14fbe6c6c11a551cc4dcbdbaf78940008b3cb 100644 (file)
@@ -487,6 +487,7 @@ int sdp_cma_handler(struct rdma_cm_id *id, struct rdma_cm_event *event)
                lock_sock(parent);
                if (!sdp_sk(parent)->id) { /* TODO: look at SOCK_DEAD? */
                        sdp_dbg(sk, "parent is going away.\n");
+                       child = NULL;
                        goto done;
                }
                if (!list_empty(&sdp_sk(child)->backlog_queue))