um: virtio_uml: mark device as unregistered when breaking it
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 9 Feb 2023 09:00:03 +0000 (10:00 +0100)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Feb 2023 09:14:32 +0000 (10:14 +0100)
commit8e9cd85139a2149d5a7c121b05e0cdb8287311f9
tree2ef10c710b96c234ab4d7fdba832bcda7c6da222
parent8a6ca543646f2940832665dbf4e04105262505e2
um: virtio_uml: mark device as unregistered when breaking it

Mark the device as not registered anymore when scheduling the work to
remove it. Otherwise we could end up scheduling the work multiple times
in a row, including scheduling it while it is already running.

Fixes: af9fb41ed315 ("um: virtio_uml: Fix broken device handling in time-travel")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/virtio_uml.c