qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Zhuowei zhang <zhuoweizhang@yahoo.com>
To: zhuoweizhang@yahoo.com, qemu-devel@nongnu.org,
	Laurent Vivier <laurent@vivier.eu>
Cc: riku.voipio@iki.fi
Subject: Re: [Qemu-devel] [PATCH v2] syscall: fix special case of write(fd, NULL, 0)
Date: Sat, 30 Sep 2017 15:49:01 +0000 (UTC)	[thread overview]
Message-ID: <2080649258.295593.1506786541765@mail.yahoo.com> (raw)
In-Reply-To: 2080649258.295593.1506786541765.ref@mail.yahoo.com


--------------------------------------------
On Sat, 9/30/17, Laurent Vivier <laurent@vivier.eu> wrote:
 
 > Could you change the NR_read too, for consistency?
 
The NR_read case for length 0 doesn't check if the buffer is NULL, unlike this patch, and I'm not sure if switching that to make a real read() syscall with a NULL buffer even if the original buffer is non-null would break anything.

Thanks
Zhuowei

       reply	other threads:[~2017-09-30 15:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2080649258.295593.1506786541765.ref@mail.yahoo.com>
2017-09-30 15:49 ` Zhuowei zhang [this message]
2017-09-30 15:23 [Qemu-devel] [PATCH v2] syscall: fix special case of write(fd, NULL, 0) zhuoweizhang
2017-09-30 15:28 ` Laurent Vivier
2017-09-30 23:12 ` Carlo Arenas
2017-10-02  1:09   ` Carlo Arenas

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=2080649258.295593.1506786541765@mail.yahoo.com \
    --to=zhuoweizhang@yahoo.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).