X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=mm%2Futil.c;h=1a41553db866f543719c019e36dc2c71c4b3b984;hb=b92d9648edcc56baf537afe491b228f158b68fcb;hp=952cbe7ad7b75183d54df0925826f892f5e4f536;hpb=8a1e377e55f2dca5c689926313beeaa8ac2adb22;p=cascardo%2Flinux.git diff --git a/mm/util.c b/mm/util.c index 952cbe7ad7b7..1a41553db866 100644 --- a/mm/util.c +++ b/mm/util.c @@ -230,8 +230,10 @@ void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, } /* Check if the vma is being used as a stack by this task */ -int vma_is_stack_for_task(struct vm_area_struct *vma, struct task_struct *t) +int vma_is_stack_for_current(struct vm_area_struct *vma) { + struct task_struct * __maybe_unused t = current; + return (vma->vm_start <= KSTK_ESP(t) && vma->vm_end >= KSTK_ESP(t)); }