Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34288
b: refs/heads/master
c: 64f817b
h: refs/heads/master
v: v3
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed Sep 22, 2006
1 parent b8aa6c2 commit 6865495
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fab97220c9e409a98b1956ba677ddd2dd43b0b95
refs/heads/master: 64f817ba98095156149ba5991592d5d039f6da74
3 changes: 1 addition & 2 deletions trunk/drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/rdma/ib_user_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ struct ib_uverbs_resize_cq {

struct ib_uverbs_resize_cq_resp {
__u32 cqe;
__u32 reserved;
__u64 driver_data[0];
};

struct ib_uverbs_poll_cq {
Expand Down

0 comments on commit 6865495

Please sign in to comment.