diff options
Diffstat (limited to 'include/linux/sched/task_stack.h')
| -rw-r--r-- | include/linux/sched/task_stack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched/task_stack.h b/include/linux/sched/task_stack.h index 6a841929073f..2413427e439c 100644 --- a/include/linux/sched/task_stack.h +++ b/include/linux/sched/task_stack.h | |||
| @@ -61,7 +61,7 @@ static inline unsigned long *end_of_stack(struct task_struct *p) | |||
| 61 | #ifdef CONFIG_THREAD_INFO_IN_TASK | 61 | #ifdef CONFIG_THREAD_INFO_IN_TASK |
| 62 | static inline void *try_get_task_stack(struct task_struct *tsk) | 62 | static inline void *try_get_task_stack(struct task_struct *tsk) |
| 63 | { | 63 | { |
| 64 | return atomic_inc_not_zero(&tsk->stack_refcount) ? | 64 | return refcount_inc_not_zero(&tsk->stack_refcount) ? |
| 65 | task_stack_page(tsk) : NULL; | 65 | task_stack_page(tsk) : NULL; |
| 66 | } | 66 | } |
| 67 | 67 | ||
