]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vhost: Fix kthread worker cgroup failure handling
authorMike Christie <michael.christie@oracle.com>
Sat, 1 Nov 2025 19:43:58 +0000 (14:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:10 +0000 (13:55 +0100)
commit0cea55e0272cb8135d27f6a31fec1f9adf58d0e4
treebb7ec27e13e199347988c3273c0bd442a7b5f5c7
parent30be771c090a8fda3d0a90200c4caf85be11634e
vhost: Fix kthread worker cgroup failure handling

[ Upstream commit f3f64c2eaffbc3169bbe1e5d1e897e6dacc839d1 ]

If we fail to attach to a cgroup we are leaking the id. This adds
a new goto to free the id.

Fixes: 7d9896e9f6d0 ("vhost: Reintroduce kthread API and add mode selection")
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251101194358.13605-1-michael.christie@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vhost/vhost.c