Re: [PATCH 1/2] vfio/mlx5: fix error code in mlx5vf_precopy_ioctl()

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

 



On Thu, 8 Dec 2022 19:01:26 +0300
Dan Carpenter <error27@xxxxxxxxx> wrote:

> The copy_to_user() function returns the number of bytes remaining to
> be copied but we want to return a negative error code here.
> 
> Fixes: 0dce165b1adf ("vfio/mlx5: Introduce vfio precopy ioctl implementation")
> Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
> ---
>  drivers/vfio/pci/mlx5/main.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Applied both to vfio next branch for v6.2.  Thanks,

Alex




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux