]> www.infradead.org Git - users/dwmw2/linux.git/commit
um: virtio_uml: fix call_fd IRQ allocation
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 3 Nov 2024 21:28:53 +0000 (22:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 Nov 2024 16:57:49 +0000 (17:57 +0100)
commitd85deadc17ee7e7154271cf1082bc0bb7aba3308
tree84bb895554b6ad08c0f313fe36ba1ca5ad638ef8
parentfcbd26d33dfa40496b6d82973bc49f95e6df21f9
um: virtio_uml: fix call_fd IRQ allocation

If the device does not support slave requests, then the IRQ will not yet
be allocated. So initialize the IRQ to UM_IRQ_ALLOC so that it will be
allocated if none has been assigned yet and store it slightly later when
we know that it will not be immediately unregistered again.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20241103212854.1436046-4-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/virtio_uml.c