From: Dan Carpenter Date: Sat, 19 Oct 2013 09:14:35 +0000 (+0300) Subject: RDMA/cxgb4: Fix four byte info leak in c4iw_create_cq() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e24a72a3302a6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Roland Dreier --- 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;