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