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:
@@ -1104,7 +1104,7 @@ impl VirtioDevice for Block {
|
||||
queue.set_event_idx(event_idx);
|
||||
|
||||
let queue_size = queue.size();
|
||||
let (kill_evt, pause_evt) = self.common.dup_eventfds();
|
||||
let (kill_evt, pause_evt) = self.common.dup_eventfds()?;
|
||||
let queue_idx = i as u16;
|
||||
|
||||
let mut handler = BlockEpollHandler {
|
||||
|
||||
Reference in New Issue
Block a user