Message ID | 20230805194127.70304-3-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 7c2c4fb7ea..92c74497b5 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -659,8 +659,9 @@ static int vhost_vdpa_net_load_mac(VhostVDPAState *s, const VirtIONet *n) if (unlikely(dev_written < 0)) { return dev_written; } - - return *s->status != VIRTIO_NET_OK; + if (*s->status != VIRTIO_NET_OK) { + return -EIO; + } } return 0;