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:
@@ -469,7 +469,7 @@ where
|
||||
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 mut virtqueues = Vec::new();
|
||||
let mut queue_evts = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user