kthread: add kthread_stop_put
authorjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:21:39 +0000 (04:21 +0000)
committerjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:21:39 +0000 (04:21 +0000)
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

index 713e018..31d206c 100644 (file)
@@ -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);