Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac7cbf96 authored by Lijun Ou's avatar Lijun Ou Committed by Jason Gunthorpe
Browse files

RDMA/hns: Modify qp will return errno when qp type is illegal



Set for ret was missing in the error path here, resulting in incorrect
error code for modify_qp.

Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent c8e46f8d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3447,6 +3447,7 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
		;
	} else {
		dev_err(dev, "Illegal state for QP!\n");
		ret = -EINVAL;
		goto out;
	}