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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:57:26 +0000 (13:57 +0100)
commitb7d5712cf9f4c74b1d39d8789c01601d3e0e75a9
tree584bbe2195d4b1b1cd62864996aac774fdfed5c0
parent1b1ef45d48e138eee987b186f14d152fb1ebe767
um: virtio_uml: mark device as unregistered when breaking it

[ Upstream commit 8e9cd85139a2149d5a7c121b05e0cdb8287311f9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/drivers/virtio_uml.c