[Infiniband] Add missing list_del()s in ib_create_qp() failure path.
authorMichael Brown <mcb30@etherboot.org>
Sat, 23 Feb 2008 04:03:31 +0000 (04:03 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sat, 23 Feb 2008 10:48:10 +0000 (10:48 +0000)
src/net/infiniband.c

index ed186d1..89f7d51 100644 (file)
@@ -132,6 +132,8 @@ struct ib_queue_pair * ib_create_qp ( struct ib_device *ibdev,
        if ( ( rc = ibdev->op->create_qp ( ibdev, qp ) ) != 0 ) {
                DBGC ( ibdev, "IBDEV %p could not initialise queue pair: "
                       "%s\n", ibdev, strerror ( rc ) );
+               list_del ( &qp->send.list );
+               list_del ( &qp->recv.list );
                free ( qp );
                return NULL;
        }