Re: [PATCH for-next] RDMA/uverbs: Initialize udata struct on destroy flows

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

 



On Tue, Apr 30, 2019 at 11:46:39AM +0300, Gal Pressman wrote:
> Cited commit introduced the udata parameter to different destroy flows
> but the uapi method definition does not have udata (i.e has_udata flag
> is not set). As a result, an uninitialized udata struct is being passed
> down to the driver callbacks.
> 
> Fix that by clearing the driver udata even in cases where has_udata flag
> is not set.
> 
> Fixes: c4367a26357b ("IB: Pass uverbs_attr_bundle down ib_x destroy path")
> Cc: Shamir Rabinovitch <shamir.rabinovitch@xxxxxxxxxx>
> Co-developed-by: Jason Gunthorpe <jgg@xxxxxxxx>
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxx>
> Signed-off-by: Gal Pressman <galpress@xxxxxxxxxx>
> ---
>  drivers/infiniband/core/uverbs_ioctl.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied to for-next thanks

Jason




[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