]> git.baikalelectronics.ru Git - kernel.git/commit
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:55:22 +0000 (13:55 +0100)
commit725fd3f049be8d80ed194e1ada187a6627075c32
treebc0c432b84f3281241c87011800ed4bcccff29e6
parent86fd9ead48e41ff8197b9a8f1ccc42be42142b91
um: virtio_uml: mark device as unregistered when breaking it

[ Upstream commit 6264cc75a94511da2ae8646eebb128d6d12cd09d ]

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: 771c89cc2180 ("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