mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Remove panic when duplicating activate EventFds
Replace the (unlikely) panic when duplicating the EventFds with a propagated error. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -951,7 +951,7 @@ impl VirtioDevice for Mem {
|
||||
device_status,
|
||||
} = context;
|
||||
self.common.activate(&queues, interrupt_cb.clone())?;
|
||||
let (kill_evt, pause_evt) = self.common.dup_eventfds();
|
||||
let (kill_evt, pause_evt) = self.common.dup_eventfds()?;
|
||||
|
||||
let (_, queue, queue_evt) = queues.remove(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user