aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/cm.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-12-13 14:33:23 -0800
committerJason Gunthorpe <jgg@nvidia.com>2021-12-14 20:21:22 -0400
commite517f76a3cb24b2a4749e0348390aece24cf9925 (patch)
treef52df840a7a59832a8018db84bcf0b90a0c4110d /drivers/infiniband/hw/cxgb4/cm.c
parentMerge tag 'v5.16-rc5' into rdma.git for-next (diff)
downloadlinux-dev-e517f76a3cb24b2a4749e0348390aece24cf9925.tar.xz
linux-dev-e517f76a3cb24b2a4749e0348390aece24cf9925.zip
RDMA/mlx5: Use memset_after() to zero struct mlx5_ib_mr
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memset(), avoid intentionally writing across neighboring fields. Use memset_after() to zero the end of struct mlx5_ib_mr that should be initialized. Link: https://lore.kernel.org/r/20211213223331.135412-10-keescook@chromium.org Acked-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/cm.c')
0 files changed, 0 insertions, 0 deletions