diff options
| -rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index c68795194e25..b622783ab198 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
| @@ -663,8 +663,9 @@ isert_connect_request(struct rdma_cm_id *cma_id, struct rdma_cm_event *event) | |||
| 663 | 663 | ||
| 664 | pi_support = np->tpg_np->tpg->tpg_attrib.t10_pi; | 664 | pi_support = np->tpg_np->tpg->tpg_attrib.t10_pi; |
| 665 | if (pi_support && !device->pi_capable) { | 665 | if (pi_support && !device->pi_capable) { |
| 666 | pr_err("Protection information requested but not supported\n"); | 666 | pr_err("Protection information requested but not supported, " |
| 667 | ret = -EINVAL; | 667 | "rejecting connect request\n"); |
| 668 | ret = rdma_reject(cma_id, NULL, 0); | ||
| 668 | goto out_mr; | 669 | goto out_mr; |
| 669 | } | 670 | } |
| 670 | 671 | ||
