]> Git Repo - qemu.git/commit
linux-user/mmap.c: handle invalid len maps correctly
authorAlex Bennée <[email protected]>
Mon, 30 Jul 2018 13:43:20 +0000 (14:43 +0100)
committerLaurent Vivier <[email protected]>
Tue, 31 Jul 2018 07:57:25 +0000 (09:57 +0200)
commit38138fab93584ad3560ddfcd70efbd5bb6b4a6f0
tree154ade908b71f527f8853a1fa079b151b74bda31
parent6d9dd5fb9d0e9f4a174f53a0e20a39fbe809c71e
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: Alex Bennée <[email protected]>
Cc: umarcor <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Message-Id: <20180730134321[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
linux-user/mmap.c
This page took 0.022219 seconds and 4 git commands to generate.