Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e24a72a3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Roland Dreier
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent ff1706f4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;