Message ID | 20230805194127.70304-4-mjt@tls.msk.ru |
---|---|
State | New |
Headers | show |
Series | Patch Round-up for stable 8.0.4, freeze on 2023-08-05 | expand |
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 92c74497b5..bda83c4b09 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -685,8 +685,11 @@ static int vhost_vdpa_net_load_mq(VhostVDPAState *s, if (unlikely(dev_written < 0)) { return dev_written; } + if (*s->status != VIRTIO_NET_OK) { + return -EIO; + } - return *s->status != VIRTIO_NET_OK; + return 0; } static int vhost_vdpa_net_load(NetClientState *nc)