exec: Correct wrong "=" to "+=".

Change-Id: Iec8c1bb7a12ad7f2e1d4ac07c75482e4d86a0ea2
Refs: #1382
This commit is contained in:
Shiratori, Takehiro
2020-03-09 10:59:26 +09:00
committed by Masamichi Takagi
parent 0a4e6b49b4
commit 1d1ec39a27
5 changed files with 413 additions and 1 deletions

View File

@ -269,7 +269,7 @@ int prepare_process_ranges_args_envs(struct thread *thread,
argenv_page_count += (map_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
}
else {
argenv_page_count = (envs_len + PAGE_SIZE - 1) >> PAGE_SHIFT;
argenv_page_count += (envs_len + PAGE_SIZE - 1) >> PAGE_SHIFT;
}
addr = vm->region.map_start - PAGE_SIZE * argenv_page_count;
e = addr + PAGE_SIZE * argenv_page_count;