Message ID | 20230805193811.69490-3-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 3a6cbc47bb..2c3a9e138f 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -403,8 +403,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;