mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
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>
This commit is contained in:
parent
6601d5a008
commit
9ab9b4f4eb
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user