From: Amrani, Ram Date: Thu, 22 Dec 2016 12:40:35 +0000 (+0200) Subject: qedr: return correct value on modify qp X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d6ebbf29c3015bdccef388a860ac4ef6772531f8;p=linux-beck.git qedr: return correct value on modify qp Signed-off-by: Ram Amrani Reviewed-by: Michal Kalderon Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index cbccd7d3ae1e..5d1980dd6c48 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -1974,7 +1974,7 @@ int qedr_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, if (attr_mask & IB_QP_STATE) { if ((qp->qp_type != IB_QPT_GSI) && (!udata)) - qedr_update_qp_state(dev, qp, qp_params.new_state); + rc = qedr_update_qp_state(dev, qp, qp_params.new_state); qp->state = qp_params.new_state; }