From: jsg Date: Sat, 15 Jun 2024 04:21:39 +0000 (+0000) Subject: kthread: add kthread_stop_put X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9cb8a68cefdfebdbaa33e2a501026c1d300ff582;p=openbsd kthread: add kthread_stop_put From Andreas Gruenbacher a9da6ddaef9ef7d9afd3f89e447c60e38f74bf44 in linux-6.6.y/6.6.33 6309727ef27162deabd5c095c11af24970fba5a2 in mainline linux --- 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);