diff options
author | 2023-12-20 14:47:18 -0800 | |
---|---|---|
committer | 2023-12-20 14:47:18 -0800 | |
commit | a721aeac8bc2cade37e68ea195f28d2ed28c1130 (patch) | |
tree | 34da931ad1d0d715c4fde89d19af67780e40a6aa /include/linux/mm.h | |
parent | maple_tree: change return type of mas_split_final_node as void. (diff) | |
parent | mailmap: add an old address for Naoya Horiguchi (diff) | |
download | wireguard-linux-a721aeac8bc2cade37e68ea195f28d2ed28c1130.tar.xz wireguard-linux-a721aeac8bc2cade37e68ea195f28d2ed28c1130.zip |
sync mm-stable with mm-hotfixes-stable to pick up depended-upon changes
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a422cc123a2d..b72bf25a45cf 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -886,8 +886,8 @@ static inline bool vma_is_anonymous(struct vm_area_struct *vma) */ static inline bool vma_is_initial_heap(const struct vm_area_struct *vma) { - return vma->vm_start <= vma->vm_mm->brk && - vma->vm_end >= vma->vm_mm->start_brk; + return vma->vm_start < vma->vm_mm->brk && + vma->vm_end > vma->vm_mm->start_brk; } /* @@ -901,8 +901,8 @@ static inline bool vma_is_initial_stack(const struct vm_area_struct *vma) * its "stack". It's not even well-defined for programs written * languages like Go. */ - return vma->vm_start <= vma->vm_mm->start_stack && - vma->vm_end >= vma->vm_mm->start_stack; + return vma->vm_start <= vma->vm_mm->start_stack && + vma->vm_end >= vma->vm_mm->start_stack; } static inline bool vma_is_temporary_stack(struct vm_area_struct *vma) |