From: Jim Fehlig <jfehlig@suse.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] Fix assignment of devid value returned from libxl__device_nextid
Date: Wed, 26 Jun 2013 11:05:38 -0600 [thread overview]
Message-ID: <51CB1F62.2090804@suse.com> (raw)
In-Reply-To: <1372265374.7337.111.camel@zakaz.uk.xensource.com>
Ian Campbell wrote:
> On Wed, 2013-06-26 at 10:42 -0600, Jim Fehlig wrote:
>
>> George Dunlap wrote:
>>
>>> On Tue, Jun 25, 2013 at 11:02 PM, Jim Fehlig <jfehlig@suse.com> wrote:
>>>
>>>
>>>> Commit 5420f265 has some misplaced parenthesis that caused devid
>>>> to be assigned 1 or 0 based on checking return value of
>>>> libxl__device_nextid < 0, e.g.
>>>>
>>>> devid = libxl__device_nextid(...) < 0
>>>>
>>>> This works when only one instance of a given device type exists, but
>>>> subsequent devices of the same type will also have a devid = 1 if
>>>> libxl__device_nextid succeeds. Fix by checking the value assigned to
>>>> devid, e.g.
>>>>
>>>> (devid = libxl__device_nextid(...)) < 0
>>>>
>>>> Signed-off-by: Jim Fehlig <jfehlig@suse.com>
>>>>
>>>>
>>> Both for 4.3, and as a patch in general:
>>>
>>>
>> Noticed I have the commit msg a tad bit wrong. It should read
>> "...devices of the same type will also have a devid = 0 if..." since
>> libxl__device_nextid(...) < 0 is false when libxl__device_nextid()
>> succeeds. Also, perhaps I should add that xl is not affected since it
>> supplies devid, but apps such as libvirt that allow libxl to fill in
>> devid are certainly affected when there is more than 1 of the same
>> device type. Should I submit a V2 with an improved commit msg?
>>
>
> I'm afraid I have already committed.
>
Yep, saw that just after I sent this message :).
> Not to worry.
>
Right. The existing msg at least adequately describes the problem.
Regards,
Jim
prev parent reply other threads:[~2013-06-26 17:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 22:02 [PATCH] Fix assignment of devid value returned from libxl__device_nextid Jim Fehlig
2013-06-26 9:41 ` George Dunlap
2013-06-26 16:24 ` Ian Campbell
2013-06-26 16:42 ` Jim Fehlig
2013-06-26 16:49 ` Ian Campbell
2013-06-26 17:05 ` Jim Fehlig [this message]
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=51CB1F62.2090804@suse.com \
--to=jfehlig@suse.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=xen-devel@lists.xen.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).