diff options
author | Steve Wise <swise@opengridcomputing.com> | 2018-03-01 13:58:20 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-03-08 15:03:03 -0500 |
commit | 5292443431fff5ba20f1b48985d382dd824016eb (patch) | |
tree | 246240e9f38cd50baac9eb22b342e4e75c12b11f /drivers/infiniband/core | |
parent | RDMA/nldev: provide detailed MR information (diff) | |
download | linux-dev-5292443431fff5ba20f1b48985d382dd824016eb.tar.xz linux-dev-5292443431fff5ba20f1b48985d382dd824016eb.zip |
mlx4_ib: zero out struct ib_pd when allocating
Zero out the fields of the struct ib_pd for user mode pds so that
users querying pds via nldev will not get garbage. For simplicity,
use kzalloc() to allocate the mlx4_ib_pd struct.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core')
0 files changed, 0 insertions, 0 deletions