All of lore.kernel.org
 help / color / mirror / Atom feed
* libxl: copy & paste bug
@ 2010-10-05 10:05 Christoph Egger
  2010-10-05 10:08 ` Ian Campbell
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Egger @ 2010-10-05 10:05 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com


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);

Christoph


-- 
---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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libxl: copy & paste bug
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Campbell @ 2010-10-05 10:08 UTC (permalink / raw)
  To: Christoph Egger; +Cc: xen-devel@lists.xensource.com

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.

Ian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libxl: copy & paste bug
  2010-10-05 10:08 ` Ian Campbell
@ 2010-10-05 10:47   ` Christoph Egger
  2010-10-05 12:40     ` Ian Campbell
  2010-10-05 13:22     ` Stefano Stabellini
  0 siblings, 2 replies; 5+ messages in thread
From: Christoph Egger @ 2010-10-05 10:47 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel@lists.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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libxl: copy & paste bug
  2010-10-05 10:47   ` Christoph Egger
@ 2010-10-05 12:40     ` Ian Campbell
  2010-10-05 13:22     ` Stefano Stabellini
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2010-10-05 12:40 UTC (permalink / raw)
  To: Christoph Egger; +Cc: xen-devel@lists.xensource.com

On Tue, 2010-10-05 at 11:47 +0100, Christoph Egger wrote:
> 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.

Thanks.

> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>

Ian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libxl: copy & paste bug
  2010-10-05 10:47   ` Christoph Egger
  2010-10-05 12:40     ` Ian Campbell
@ 2010-10-05 13:22     ` Stefano Stabellini
  1 sibling, 0 replies; 5+ messages in thread
From: Stefano Stabellini @ 2010-10-05 13:22 UTC (permalink / raw)
  To: Christoph Egger; +Cc: Ian Campbell, xen-devel@lists.xensource.com

On Tue, 5 Oct 2010, Christoph Egger wrote:
> 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.

applied, thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-05 13:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-10-05 12:40     ` Ian Campbell
2010-10-05 13:22     ` Stefano Stabellini

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.