[PATCH 3/4] kernel/fork: use vfree() instead of vfree_atomic() to free thread stack
From: Andrey Ryabinin
Date: Thu Mar 30 2017 - 06:26:28 EST
vfree() can be used in any atomic context now, thus there is no point
in using vfree_atomic().
This reverts commit 0f110a9b956c ("kernel/fork: use vfree_atomic()
to free thread stack")
Signed-off-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>
---
kernel/fork.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/fork.c b/kernel/fork.c
index a9f642d..084e6a4 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -241,7 +241,7 @@ static inline void free_thread_stack(struct task_struct *tsk)
}
local_irq_restore(flags);
- vfree_atomic(tsk->stack);
+ vfree(tsk->stack);
return;
}
#endif
--
2.10.2