diff options
| author | Xiong Weimin <xiongweimin@kylinos.cn> | 2026-08-04 17:26:07 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-09-07 18:54:02 -0400 |
| commit | 9ab9b4f4eb4288588707ec359ac3d5b7ccf07fa6 (patch) | |
| tree | bf1bba8b50027b7e55321c9d0d2f52560b977d9d | |
| parent | 6601d5a00899e7fa7e6b2d18113cee385ed3801b (diff) | |
vdpa: alibaba: Keep DRIVER_OK clear if IRQ setup fails
If requesting MSI-X interrupts fails while DRIVER_OK is being set, leave
the device status unchanged instead of advertising a ready device without
working interrupts.
Signed-off-by: Xiong Weimin <xiongweimin@kylinos.cn>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260804092608.1344269-1-xiongweimin@kylinos.cn>
| -rw-r--r-- | drivers/vdpa/alibaba/eni_vdpa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/vdpa/alibaba/eni_vdpa.c b/drivers/vdpa/alibaba/eni_vdpa.c index fd6fdba46094..1288402d3dd8 100644 --- a/drivers/vdpa/alibaba/eni_vdpa.c +++ b/drivers/vdpa/alibaba/eni_vdpa.c @@ -216,7 +216,10 @@ static void eni_vdpa_set_status(struct vdpa_device *vdpa, u8 status) if (status & VIRTIO_CONFIG_S_DRIVER_OK && !(s & VIRTIO_CONFIG_S_DRIVER_OK)) { - eni_vdpa_request_irq(eni_vdpa); + if (eni_vdpa_request_irq(eni_vdpa)) { + WARN_ON(1); + return; + } } vp_legacy_set_status(ldev, status); |
