提交 e00ac249 编写于 作者: T takasi-y@ops.dti.ne.jp 提交者: Aurelien Jarno

linux-user: do_shmdt(): Fix page_set_flags's 2nd arg.

2nd arg of page_set_flags() should be start+size, but size.
Signed-off-by: NTakashi YOSHII <takasi-y@ops.dti.ne.jp>
Acked-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 11078ae3
...@@ -2752,7 +2752,7 @@ static inline abi_long do_shmdt(abi_ulong shmaddr) ...@@ -2752,7 +2752,7 @@ static inline abi_long do_shmdt(abi_ulong shmaddr)
for (i = 0; i < N_SHM_REGIONS; ++i) { for (i = 0; i < N_SHM_REGIONS; ++i) {
if (shm_regions[i].start == shmaddr) { if (shm_regions[i].start == shmaddr) {
shm_regions[i].start = 0; shm_regions[i].start = 0;
page_set_flags(shmaddr, shm_regions[i].size, 0); page_set_flags(shmaddr, shmaddr + shm_regions[i].size, 0);
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册