From 7e83bd9adffbee6c97db55efc0ff17fc7677bfc5 Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Wed, 5 Jul 2023 17:50:51 +1000 Subject: [PATCH] virtio-gpud: indicate the reservation of 0 resource_id Signed-off-by: Anhad Singh --- virtio-gpud/src/scheme.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio-gpud/src/scheme.rs b/virtio-gpud/src/scheme.rs index fea65b1bf7..2dd680fd48 100644 --- a/virtio-gpud/src/scheme.rs +++ b/virtio-gpud/src/scheme.rs @@ -15,7 +15,7 @@ use virtio_core::{ use crate::*; -static RESOURCE_ALLOC: AtomicU32 = AtomicU32::new(1); +static RESOURCE_ALLOC: AtomicU32 = AtomicU32::new(1); // XXX: 0 is reserved for whatever that takes `resource_id`. pub struct Display<'a> { control_queue: Arc>,