From: Richard Henderson <rth@twiddle.net>
To: takasi-y@ops.dti.ne.jp
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] linux-user: do_shmdt(): Fix page_set_flags's 2nd arg.
Date: Sun, 11 Apr 2010 16:05:28 -0700 [thread overview]
Message-ID: <4BC255B8.3080606@twiddle.net> (raw)
In-Reply-To: <201004101709.o3AH9vx8029942@smtp12.dti.ne.jp>
On 04/10/2010 10:09 AM, takasi-y@ops.dti.ne.jp wrote:
> 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>
> ---
> 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 a03e432..26c0fb4 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;
> }
> }
next prev parent reply other threads:[~2010-04-11 23:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-10 17:09 [Qemu-devel] [PATCH] linux-user: do_shmdt(): Fix page_set_flags's 2nd arg takasi-y
2010-04-11 23:05 ` Richard Henderson [this message]
2010-04-13 22:19 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BC255B8.3080606@twiddle.net \
--to=rth@twiddle.net \
--cc=qemu-devel@nongnu.org \
--cc=takasi-y@ops.dti.ne.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.