Skip to content
Commit 19751c07 authored by jmarchan@redhat.com's avatar jmarchan@redhat.com Committed by Benjamin Herrenschmidt
Browse files

powerpc/mm: Fix mmap errno when MAP_FIXED is set and mapping exceeds the allowed address space



According to Posix, if MAP_FIXED is specified mmap shall set ENOMEM if
the requested mapping exceeds the allowed range for address space of
the process. The generic code set it right, but the specific powerpc
slice_get_unmapped_area() function currently returns -EINVAL in that
case.
This patch corrects it.

Signed-off-by: default avatarJerome Marchand <jmarchan@redhat.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 2c2e6ecf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment