Message ID | 20230805193811.69490-4-mjt@tls.msk.ru |
---|---|
State | New |
Headers | show |
Series | Patch Round-up for stable 7.2.5, freeze on 2023-08-05 | expand |
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 2c3a9e138f..1b1a27de02 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -429,8 +429,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)