diff options
Diffstat (limited to 'nds32-bugfix.patch')
| -rw-r--r-- | nds32-bugfix.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nds32-bugfix.patch b/nds32-bugfix.patch new file mode 100644 index 00000000000000..9e1d429f30fabe --- /dev/null +++ b/nds32-bugfix.patch @@ -0,0 +1,20 @@ +From foo@baz Fri Jun 25 02:01:11 PM CEST 2021 +Date: Fri, 25 Jun 2021 14:01:11 +0200 +To: Greg KH <gregkh@linuxfoundation.org> +From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +Subject: [PATCH] nds32: bugfix + + +diff --git a/arch/nds32/mm/mmap.c b/arch/nds32/mm/mmap.c +index c206b31ce07a..1bdf5e7d1b43 100644 +--- a/arch/nds32/mm/mmap.c ++++ b/arch/nds32/mm/mmap.c +@@ -59,7 +59,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, + + vma = find_vma(mm, addr); + if (TASK_SIZE - len >= addr && +- (!vma || addr + len <= vma->vm_start)) ++ (!vma || addr + len <= vm_start_gap(vma))) + return addr; + } + |
