Displaying 1 result from an estimated 1 matches for "03014224ef13".
2018 Dec 13
0
[PATCH] vhost: return EINVAL if iovecs size does not match the message size
...; 
> Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Thanks for the patch!
> ---
>  drivers/vhost/vhost.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
> index 3a5f81a66d34..03014224ef13 100644
> --- a/drivers/vhost/vhost.c
> +++ b/drivers/vhost/vhost.c
> @@ -1024,8 +1024,10 @@ ssize_t vhost_chr_write_iter(struct vhost_dev *dev,
>  	int type, ret;
>  
>  	ret = copy_from_iter(&type, sizeof(type), from);
> -	if (ret != sizeof(type))
> +	if (ret != sizeof(...