aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/slice.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/slice.c')
-rw-r--r--arch/powerpc/mm/slice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c
index 7ce9cf3b6988..b0c75cc15efc 100644
--- a/arch/powerpc/mm/slice.c
+++ b/arch/powerpc/mm/slice.c
@@ -408,7 +408,7 @@ unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len,
408 if (fixed && (addr & ((1ul << pshift) - 1))) 408 if (fixed && (addr & ((1ul << pshift) - 1)))
409 return -EINVAL; 409 return -EINVAL;
410 if (fixed && addr > (mm->task_size - len)) 410 if (fixed && addr > (mm->task_size - len))
411 return -EINVAL; 411 return -ENOMEM;
412 412
413 /* If hint, make sure it matches our alignment restrictions */ 413 /* If hint, make sure it matches our alignment restrictions */
414 if (!fixed && addr) { 414 if (!fixed && addr) {