All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: libxl: copy & paste bug
Date: Tue, 5 Oct 2010 12:47:38 +0200	[thread overview]
Message-ID: <201010051247.38806.Christoph.Egger@amd.com> (raw)
In-Reply-To: <1286273298.23155.7580.camel@zakaz.uk.xensource.com>

[-- Attachment #1: Type: text/plain, Size: 937 bytes --]

On Tuesday 05 October 2010 12:08:18 Ian Campbell wrote:
> On Tue, 2010-10-05 at 11:05 +0100, Christoph Egger wrote:
> > Hi!
> >
> > In tools/libxl/libxl_bootloader.c, at the end of the
> > function libxl_run_bootloader() are the following lines:
> >
> > if (fifo_fd > -1)
> >     close(fifo_fd);
> > if (bootloader_fd > -1)
> >     close(bootloader_fd);
> > if (xenconsoled_fd > -1)
> >     close(xenconsoled_fd);
> > if (xenconsoled_slave > -1)
> >     close(xenconsoled_fd);
> >
> > The last line is wrong. It should be:
> >
> >     close(xenconsoled_slave);
>
> Indeed. Please can you post a patch.

Attached.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>



-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_libxl.diff --]
[-- Type: text/x-diff, Size: 423 bytes --]

diff -r cdff378e61eb tools/libxl/libxl_bootloader.c
--- a/tools/libxl/libxl_bootloader.c	Tue Oct 05 12:43:27 2010 +0200
+++ b/tools/libxl/libxl_bootloader.c	Tue Oct 05 12:46:27 2010 +0200
@@ -429,7 +429,7 @@ out_close:
     if (xenconsoled_fd > -1)
         close(xenconsoled_fd);
     if (xenconsoled_slave > -1)
-        close(xenconsoled_fd);
+        close(xenconsoled_slave);
 
     if (fifo) {
         unlink(fifo);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2010-10-05 10:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 10:05 libxl: copy & paste bug Christoph Egger
2010-10-05 10:08 ` Ian Campbell
2010-10-05 10:47   ` Christoph Egger [this message]
2010-10-05 12:40     ` Ian Campbell
2010-10-05 13:22     ` Stefano Stabellini

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=201010051247.38806.Christoph.Egger@amd.com \
    --to=christoph.egger@amd.com \
    --cc=Ian.Campbell@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.