diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> | 2019-02-26 10:09:35 +0530 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-07-09 22:04:07 +0100 |
commit | a707569270f11ad9e7533af779050b5ce21d8133 (patch) | |
tree | c674a56b1149ee20563d2cf3863ecf120b247c6c /drivers/ptp/ptp_ixp46x.c | |
parent | 60aa8550618a9230b255d8436aa7f2c091373a0b (diff) | |
download | linux-stable-a707569270f11ad9e7533af779050b5ce21d8133.tar.gz linux-stable-a707569270f11ad9e7533af779050b5ce21d8133.tar.bz2 linux-stable-a707569270f11ad9e7533af779050b5ce21d8133.zip |
powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area topdown search
commit 3b4d07d2674f6b4a9281031f99d1f7efd325b16d upstream.
When doing top-down search the low_limit is not PAGE_SIZE but rather
max(PAGE_SIZE, mmap_min_addr). This handle cases in which mmap_min_addr >
PAGE_SIZE.
Fixes: fba2369e6ceb ("mm: use vm_unmapped_area() on powerpc architecture")
Reviewed-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/ptp/ptp_ixp46x.c')
0 files changed, 0 insertions, 0 deletions