From: Liu Yuan <namei.unix@gmail.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: sheepdog@lists.wpkg.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] sheepdog: fix confused return values
Date: Thu, 26 Feb 2015 11:54:46 +0800 [thread overview]
Message-ID: <20150226035446.GD5811@ubuntu-trusty> (raw)
In-Reply-To: <87bnkigwq2.fsf@blackfin.pond.sub.org>
On Wed, Feb 25, 2015 at 10:35:17AM +0100, Markus Armbruster wrote:
> Liu Yuan <namei.unix@gmail.com> writes:
>
> > On Wed, Feb 18, 2015 at 09:35:07AM +0100, Markus Armbruster wrote:
> >> Liu Yuan <namei.unix@gmail.com> writes:
> >>
> >> > From: Liu Yuan <liuyuan@cmss.chinamobile.com>
> >> >
> >> > These functions mix up -1 and -errno in return values and would might cause
> >> > trouble error handling in the call chain.
> >> >
> >> > This patch let them return -errno and add some comments.
> >> >
> >> > Reported-by: Markus Armbruster <armbru@redhat.com>
> >> > Signed-off-by: Liu Yuan <liuyuan@cmss.chinamobile.com>
> >>
> >> Did you review all functions returning negative errno, or just the two
> >> that caught my eye?
> >
> > Umm, mostly the two you mentioned.
>
> I encourage you to review the whole file for this error pattern! In my
> experience, bugs occur in clusters. When you find one, there's a high
> chance similar ones exist, and looking for them is good practice.
Hi Markus, I've checked the whole file as possible as I can. I can't find more
ret mixing bugs.
Yuan
next prev parent reply other threads:[~2015-02-26 3:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 14:01 [Qemu-devel] Several sheepdog functions mix up -1 and -errno in return values Markus Armbruster
2015-02-13 3:45 ` [Qemu-devel] [PATCH] sheepdog: fix confused " Liu Yuan
2015-02-13 3:49 ` Liu Yuan
2015-02-16 11:56 ` Kevin Wolf
2015-02-18 3:52 ` Liu Yuan
2015-02-18 8:35 ` Markus Armbruster
2015-02-25 1:39 ` Liu Yuan
2015-02-25 9:35 ` Markus Armbruster
2015-02-26 3:54 ` Liu Yuan [this message]
2015-02-26 7:50 ` Markus Armbruster
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=20150226035446.GD5811@ubuntu-trusty \
--to=namei.unix@gmail.com \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sheepdog@lists.wpkg.org \
/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).