On Fri, Feb 20, 2026 at 02:48:01PM +0500, Alexandr Moshkov wrote:
> While I was rebasing my series about inflight migration, I missed a
> small issue in vhost_inflight_buffer_preload:
> 
> * fix wrong return type in function
> * fix error check
> 
> Signed-off-by: Alexandr Moshkov <[email protected]>

Fixes: tag pls?

> ---
>  hw/virtio/vhost.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
> index 52801c1796..f83bdcaf8b 100644
> --- a/hw/virtio/vhost.c
> +++ b/hw/virtio/vhost.c
> @@ -1926,8 +1926,8 @@ static bool vhost_inflight_buffer_pre_load(void 
> *opaque, Error **errp)
>      void *addr = qemu_memfd_alloc("vhost-inflight", inflight->size,
>                                    F_SEAL_GROW | F_SEAL_SHRINK | F_SEAL_SEAL,
>                                    &fd, errp);
> -    if (*errp) {
> -        return -ENOMEM;
> +    if (!addr) {
> +        return false;
>      }
>  
>      inflight->offset = 0;
> -- 
> 2.34.1


Reply via email to