All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Jun Zhu (Intern)" <Jun.Zhu@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: A bug in Xenbus driver
Date: Wed, 25 Aug 2010 12:15:03 -0700	[thread overview]
Message-ID: <4C756BB7.70801@goop.org> (raw)
In-Reply-To: <4C756ADF.1000207@goop.org>

 On 08/25/2010 12:11 PM, Jeremy Fitzhardinge wrote:
> copy_to_user returns the number of uncopied bytes, so if ret != sz, then
> some part of the data was not copied due to a memory fault problem.

No, wait, I've contradicted myself.  copy_to_user does return the number
of uncopied bytes, so the result should be 0 on success, and you're
right, the test should be "ret != 0".

Sorry about that.

    J

  reply	other threads:[~2010-08-25 19:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-25 18:57 A bug in Xenbus driver Jun Zhu (Intern)
2010-08-25 19:11 ` Jeremy Fitzhardinge
2010-08-25 19:15   ` Jeremy Fitzhardinge [this message]
2010-08-25 19:19 ` Jeremy Fitzhardinge
2010-08-26  8:25   ` Jun Zhu (Intern)
2010-08-26 16:34     ` Jeremy Fitzhardinge
2010-08-27 11:03       ` Jun Zhu (Intern)
2010-08-27 12:38       ` Jun Zhu (Intern)

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=4C756BB7.70801@goop.org \
    --to=jeremy@goop.org \
    --cc=Jun.Zhu@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.