Skip to content
Commit 38138fab authored by Alex Bennée's avatar Alex Bennée Committed by Laurent Vivier
Browse files

linux-user/mmap.c: handle invalid len maps correctly



I've slightly re-organised the check to more closely match the
sequence that the kernel uses in do_mmap(). We check for both the zero
case (EINVAL) and the overflow length case (ENOMEM).

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Cc: umarcor <1783362@bugs.launchpad.net>
Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
Message-Id: <20180730134321.19898-2-alex.bennee@linaro.org>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent 6d9dd5fb
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