diff options
author | takasi-y@ops.dti.ne.jp <takasi-y@ops.dti.ne.jp> | 2010-04-11 02:09:57 +0900 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-14 00:19:56 +0200 |
commit | e00ac249532c7a64594c814a73b1033cc3da013d (patch) | |
tree | a98f6e649e15db42c9ddad917f776479c7a19af6 | |
parent | 11078ae37f71eb64b4e1406af868a21ea676f184 (diff) | |
download | qemu-e00ac249532c7a64594c814a73b1033cc3da013d.zip |
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>
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a03e4329e8..26c0fb4dc6 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2752,7 +2752,7 @@ static inline abi_long do_shmdt(abi_ulong shmaddr) for (i = 0; i < N_SHM_REGIONS; ++i) { if (shm_regions[i].start == shmaddr) { 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; } } |