aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/src/linux_kthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/src/linux_kthread.c')
-rw-r--r--sys/compat/linuxkpi/common/src/linux_kthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_kthread.c b/sys/compat/linuxkpi/common/src/linux_kthread.c
index 90da31f1ad0a..ab5a95601f5e 100644
--- a/sys/compat/linuxkpi/common/src/linux_kthread.c
+++ b/sys/compat/linuxkpi/common/src/linux_kthread.c
@@ -72,7 +72,7 @@ kthread_stop(struct task_struct *task)
* Get return code and free task structure:
*/
retval = task->task_ret;
- linux_free_current(task);
+ put_task_struct(task);
return (retval);
}