From 9cb8a68cefdfebdbaa33e2a501026c1d300ff582 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 15 Jun 2024 04:21:39 +0000 Subject: [PATCH] kthread: add kthread_stop_put From Andreas Gruenbacher a9da6ddaef9ef7d9afd3f89e447c60e38f74bf44 in linux-6.6.y/6.6.33 6309727ef27162deabd5c095c11af24970fba5a2 in mainline linux --- sys/dev/pci/drm/i915/gt/selftest_migrate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/i915/gt/selftest_migrate.c b/sys/dev/pci/drm/i915/gt/selftest_migrate.c index 713e018c724..31d206c0b87 100644 --- a/sys/dev/pci/drm/i915/gt/selftest_migrate.c +++ b/sys/dev/pci/drm/i915/gt/selftest_migrate.c @@ -719,11 +719,9 @@ static int threaded_migrate(struct intel_migrate *migrate, if (IS_ERR_OR_NULL(tsk)) continue; - status = kthread_stop(tsk); + status = kthread_stop_put(tsk); if (status && !err) err = status; - - put_task_struct(tsk); } kfree(thread); -- 2.20.1