diff options
| author | Alex Bennée | 2018-07-30 15:43:20 +0200 |
|---|---|---|
| committer | Laurent Vivier | 2018-07-31 09:57:25 +0200 |
| commit | 38138fab93584ad3560ddfcd70efbd5bb6b4a6f0 (patch) | |
| tree | 154ade908b71f527f8853a1fa079b151b74bda31 /linux-user/host/ppc64 | |
| parent | Merge remote-tracking branch 'remotes/armbru/tags/pull-qobject-2018-07-27-v2'... (diff) | |
| download | qemu-38138fab93584ad3560ddfcd70efbd5bb6b4a6f0.tar.gz qemu-38138fab93584ad3560ddfcd70efbd5bb6b4a6f0.tar.xz qemu-38138fab93584ad3560ddfcd70efbd5bb6b4a6f0.zip | |
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 <alex.bennee@linaro.org>
Cc: umarcor <1783362@bugs.launchpad.net>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180730134321.19898-2-alex.bennee@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/host/ppc64')
0 files changed, 0 insertions, 0 deletions
