mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
RDMA: Add missed = {} initialization to uresp structs
All of these are fully initialized so no bugs are being fixed. Add the missing initializer as a precaution against future changes. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
89a4974009
commit
eff628f3bb
|
|
@ -1884,7 +1884,7 @@ int bnxt_re_create_qp(struct ib_qp *ib_qp, struct ib_qp_init_attr *qp_init_attr,
|
|||
}
|
||||
|
||||
if (udata) {
|
||||
struct bnxt_re_qp_resp resp;
|
||||
struct bnxt_re_qp_resp resp = {};
|
||||
|
||||
resp.qpid = qp->qplib_qp.id;
|
||||
resp.rsvd = 0;
|
||||
|
|
|
|||
|
|
@ -1977,7 +1977,7 @@ int erdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
|
|||
|
||||
if (!rdma_is_kernel_res(&ibcq->res)) {
|
||||
struct erdma_ureq_create_cq ureq;
|
||||
struct erdma_uresp_create_cq uresp;
|
||||
struct erdma_uresp_create_cq uresp = {};
|
||||
|
||||
ret = ib_copy_validate_udata_in(udata, ureq, rsvd0);
|
||||
if (ret)
|
||||
|
|
|
|||
|
|
@ -1090,8 +1090,8 @@ static int mlx4_ib_alloc_ucontext(struct ib_ucontext *uctx,
|
|||
struct ib_device *ibdev = uctx->device;
|
||||
struct mlx4_ib_dev *dev = to_mdev(ibdev);
|
||||
struct mlx4_ib_ucontext *context = to_mucontext(uctx);
|
||||
struct mlx4_ib_alloc_ucontext_resp_v3 resp_v3;
|
||||
struct mlx4_ib_alloc_ucontext_resp resp;
|
||||
struct mlx4_ib_alloc_ucontext_resp_v3 resp_v3 = {};
|
||||
struct mlx4_ib_alloc_ucontext_resp resp = {};
|
||||
int err;
|
||||
|
||||
if (!dev->ib_active)
|
||||
|
|
|
|||
|
|
@ -2777,7 +2777,7 @@ static int mlx5_ib_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata)
|
|||
{
|
||||
struct mlx5_ib_pd *pd = to_mpd(ibpd);
|
||||
struct ib_device *ibdev = ibpd->device;
|
||||
struct mlx5_ib_alloc_pd_resp resp;
|
||||
struct mlx5_ib_alloc_pd_resp resp = {};
|
||||
int err;
|
||||
u32 out[MLX5_ST_SZ_DW(alloc_pd_out)] = {};
|
||||
u32 in[MLX5_ST_SZ_DW(alloc_pd_in)] = {};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user