diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-25 14:09:02 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-25 14:09:02 +0200 |
| commit | fa631f2636f732af775bb8575cbbf279cd4ddb0e (patch) | |
| tree | 2e34eec9cca9295e553256161f93ba03626f1b2b /nds32-bugfix.patch | |
| parent | 9304bb8a2ca6a1c4af98bd703e4fcdfa141ab606 (diff) | |
| download | patches-fa631f2636f732af775bb8575cbbf279cd4ddb0e.tar.gz | |
updates
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; + } + |
