From: Brad Boyer <flar@allandria.com>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: v9fs-developer@lists.sourceforge.net,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Sanchit Garg <sancgarg@linux.vnet.ibm.com>
Subject: Re: [PATCH 2/2] net/9p: Return error on read with NULL buffer
Date: Sat, 23 Oct 2010 12:59:57 -0700 [thread overview]
Message-ID: <20101023195957.GA13348@cynthia.pants.nu> (raw)
In-Reply-To: <1287412853-24700-2-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
On Mon, Oct 18, 2010 at 08:10:53PM +0530, Aneesh Kumar K.V wrote:
> This patch ensures that a read(fd, NULL, 0 ) returns EFAULT on a 9p file.
Is there some specific reason you want this behavior? I believe the
generic Linux code returns success in this case. I tried this exact
system call with fd being a pty or a file on ext3 and got 0 for both.
Brad Boyer
flar@allandria.com
next prev parent reply other threads:[~2010-10-23 20:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-18 14:40 [PATCH 1/2] net/9p: Return error if we fail to encode protocol data Aneesh Kumar K.V
2010-10-18 14:40 ` [PATCH 2/2] net/9p: Return error on read with NULL buffer Aneesh Kumar K.V
2010-10-23 19:59 ` Brad Boyer [this message]
2010-10-24 14:32 ` Aneesh Kumar K. V
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=20101023195957.GA13348@cynthia.pants.nu \
--to=flar@allandria.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sancgarg@linux.vnet.ibm.com \
--cc=v9fs-developer@lists.sourceforge.net \
/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
Powered by JetHome