Files
Dan Carpenter 89c2fd0d31 vhost_vdpa: Return -EFAULT if copy_from_user() fails
commit 7922460e33 upstream.

The copy_to/from_user() functions return the number of bytes which we
weren't able to copy but the ioctl should return -EFAULT if they fail.

Fixes: a127c5bbb6 ("vhost-vdpa: fix backend feature ioctls")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201023120853.GI282278@mwanda
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: stable@vger.kernel.org
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-05 11:51:57 +01:00
..
2020-09-24 05:54:36 -04:00
…
2020-07-29 13:24:30 -04:00
2020-06-22 12:34:21 -04:00
2020-06-22 12:34:21 -04:00