Re: [PATCH v4 rdma-next 09/10] mlx4_ib: zero out struct ib_pd when allocating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 01, 2018 at 01:58:20PM -0800, Steve Wise wrote:
> 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@xxxxxxxxxxxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/mlx4/main.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux