aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorRalph Campbell <ralph.campbell@qlogic.com>2006-09-22 15:22:24 -0700
committerRoland Dreier <rolandd@cisco.com>2006-09-22 15:22:24 -0700
commit64f817ba98095156149ba5991592d5d039f6da74 (patch)
tree72aaa87275033036bbf0e886c1cb7cf1e9d38bb5 /drivers/infiniband/core
parentfab97220c9e409a98b1956ba677ddd2dd43b0b95 (diff)
downloadkernel_samsung_aries-64f817ba98095156149ba5991592d5d039f6da74.zip
kernel_samsung_aries-64f817ba98095156149ba5991592d5d039f6da74.tar.gz
kernel_samsung_aries-64f817ba98095156149ba5991592d5d039f6da74.tar.bz2
IB/uverbs: Allow resize CQ operation to return driver-specific data
Add a ib_uverbs_resize_cq_resp.driver_data field so that low-level drivers can return data from a resize CQ operation to userspace. Have ib_uverbs_resize_cq() only copy the cqe field, to avoid having to bump the userspace ABI. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r--drivers/infiniband/core/uverbs_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c
index 8b6df7c..deae43f3 100644
--- a/drivers/infiniband/core/uverbs_cmd.c
+++ b/drivers/infiniband/core/uverbs_cmd.c
@@ -879,11 +879,10 @@ ssize_t ib_uverbs_resize_cq(struct ib_uverbs_file *file,
if (ret)
goto out;
- memset(&resp, 0, sizeof resp);
resp.cqe = cq->cqe;
if (copy_to_user((void __user *) (unsigned long) cmd.response,
- &resp, sizeof resp))
+ &resp, sizeof resp.cqe))
ret = -EFAULT;
out: