]> Gentwo Git Trees - linux/.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)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Nov 2025 07:03:06 +0000 (02:03 -0500)
commitf3f64c2eaffbc3169bbe1e5d1e897e6dacc839d1
treec3b13528268e05aec55891f9a70f0756870a910c
parentb41ca62c0019de1321d75f2b2f274a28784a41ed
vhost: Fix kthread worker cgroup failure handling

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>
drivers/vhost/vhost.c