diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-10-19 13:14:35 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-03-20 20:59:04 +0400 |
commit | e24a72a3302a638d4c6e77f0b40c45cc61c3f089 (patch) | |
tree | 3ca08fb89737e3a11a45fce91a1dc9505c879b88 /drivers/infiniband/hw/cxgb4 | |
parent | ff1706f4feb8e0e1a2e56a8dd57e17a4b45649b5 (diff) | |
download | linux-e24a72a3302a638d4c6e77f0b40c45cc61c3f089.tar.xz |
RDMA/cxgb4: Fix four byte info leak in c4iw_create_cq()
There is a four byte hole at the end of the "uresp" struct after the
->qid_mask member.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c index 88de3aa9c5b0..e436ead0b32f 100644 --- a/drivers/infiniband/hw/cxgb4/cq.c +++ b/drivers/infiniband/hw/cxgb4/cq.c @@ -930,6 +930,7 @@ struct ib_cq *c4iw_create_cq(struct ib_device *ibdev, int entries, if (!mm2) goto err4; + memset(&uresp, 0, sizeof(uresp)); uresp.qid_mask = rhp->rdev.cqmask; uresp.cqid = chp->cq.cqid; uresp.size = chp->cq.size; |