Re: [PATCH] RDMA/uverbs: Fix an error flow in ib_uverbs_poll_cq

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

 



On Thu, Feb 14, 2019 at 08:13:31PM +0000, Jason Gunthorpe wrote:
> The new output_written block was wrongly placed before the ret=0, causing
> the error code to be lost. uverbs_output_written is not expected to fail,
> and even if it does fail it has no significant impact on the userspace
> flow.
> 
> Reported-by: Bart Van Assche <bvanassche@xxxxxxx>
> Fixes: d6f4a21f309d ("RDMA/uverbs: Mark ioctl responses with UVERBS_ATTR_F_VALID_OUTPUT")
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
> Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/core/uverbs_cmd.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied to for-next

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