diff options
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_cq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_cq.c b/drivers/infiniband/hw/ehca/ehca_cq.c index 212150c25ea0..8cc837537768 100644 --- a/drivers/infiniband/hw/ehca/ehca_cq.c +++ b/drivers/infiniband/hw/ehca/ehca_cq.c | |||
@@ -283,6 +283,7 @@ struct ib_cq *ehca_create_cq(struct ib_device *device, int cqe, int comp_vector, | |||
283 | (my_cq->galpas.user.fw_handle & (PAGE_SIZE - 1)); | 283 | (my_cq->galpas.user.fw_handle & (PAGE_SIZE - 1)); |
284 | if (ib_copy_to_udata(udata, &resp, sizeof(resp))) { | 284 | if (ib_copy_to_udata(udata, &resp, sizeof(resp))) { |
285 | ehca_err(device, "Copy to udata failed."); | 285 | ehca_err(device, "Copy to udata failed."); |
286 | cq = ERR_PTR(-EFAULT); | ||
286 | goto create_cq_exit4; | 287 | goto create_cq_exit4; |
287 | } | 288 | } |
288 | } | 289 | } |