lkml.org 
[lkml]   [2008]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] IB/ehca: Remove CQ-QP-link before destroying QP in error path of create_qp()
    Date
    From: Hoang-Nam Nguyen <hnguyen at de.ibm.com>

    Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
    ---
    drivers/infiniband/hw/ehca/ehca_qp.c | 5 ++++-
    1 files changed, 4 insertions(+), 1 deletions(-)

    diff --git a/drivers/infiniband/hw/ehca/ehca_qp.c b/drivers/infiniband/hw/ehca/ehca_qp.c
    index f116eb7..26c6a94 100644
    --- a/drivers/infiniband/hw/ehca/ehca_qp.c
    +++ b/drivers/infiniband/hw/ehca/ehca_qp.c
    @@ -769,12 +769,15 @@ static struct ehca_qp *internal_create_qp(
    if (ib_copy_to_udata(udata, &resp, sizeof resp)) {
    ehca_err(pd->device, "Copy to udata failed");
    ret = -EINVAL;
    - goto create_qp_exit4;
    + goto create_qp_exit5;
    }
    }

    return my_qp;

    +create_qp_exit5:
    + ehca_cq_unassign_qp(my_qp->send_cq, my_qp->real_qp_num);
    +
    create_qp_exit4:
    if (HAS_RQ(my_qp))
    ipz_queue_dtor(my_pd, &my_qp->ipz_rqueue);
    --
    1.5.2



    \
     
     \ /
      Last update: 2008-01-17 15:07    [W:0.023 / U:119.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site