diff options
author | Hongzhi.Song <hongzhi.song@windriver.com> | 2018-10-15 22:54:19 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-16 20:25:37 +0100 |
commit | ff1d158fb15f7a8bc7bca542baac6f9873a58f68 (patch) | |
tree | f506d83a02409ff5dc2642c6292f29cced0704a2 /scripts/contrib/patchreview.py | |
parent | 557f4618b75b8739a647e46054ab587ae2bbdc25 (diff) | |
download | openembedded-core-ff1d158fb15f7a8bc7bca542baac6f9873a58f68.tar.gz openembedded-core-ff1d158fb15f7a8bc7bca542baac6f9873a58f68.tar.bz2 openembedded-core-ff1d158fb15f7a8bc7bca542baac6f9873a58f68.zip |
ltp: modify mmap_24-2 testcase
Mips will return EINVAL instead of ENOMEM as expected
if the range [addr + len) exceeds TASK_SIZE.
Linux kernel code: arch/mips/mm/mmap.c
if (flags & MAP_FIXED) {
/* Even MAP_FIXED mappings must reside within TASK_SIZE */
if (TASK_SIZE - len < addr)
return -EINVAL;
Relax the condition and accept both ENOMEM and EINVAL
as expected outcome.
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/patchreview.py')
0 files changed, 0 insertions, 0 deletions