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: Takashi YOSHII <takasi-y@ops.dti.ne.jp> Acked-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
11078ae37f
commit
e00ac24953
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user