Skip to contentSkip to conversation

libxl: copy & paste bug

DISCUSSION Applied Christoph Egger 4 participants 5 messages Oct 5, 2010

lore
Share & tools
lore
#0 lore raw

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

Signature · 6 lines
---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
#1 lore raw
Quoted 14 lines · Christoph Egger

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);
Quoted 3 lines

The last line is wrong. It should be:

    close(xenconsoled_slave);

Indeed. Please can you post a patch.

Ian.

#2 lore raw
Quoted 15 lines · On Tuesday 05 October 2010 12:08:18 Ian Campbell wrote:
Quoted 14 lines · Christoph Egger

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);
Quoted 5 lines
Quoted 3 lines

The last line is wrong. It should be:

    close(xenconsoled_slave);

Indeed. Please can you post a patch.

Attached.

Signature · 6 lines
---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
tools/libxl/libxl_bootloader.c +1 -1
diff -r cdff378e61eb tools/libxl/libxl_bootloader.c
@@ -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);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Acked-by
#3 lore raw
Quoted 16 lines · Christoph Egger
Quoted 15 lines · On Tuesday 05 October 2010 12:08:18 Ian Campbell wrote:
Quoted 14 lines · Christoph Egger

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);
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

The last line is wrong. It should be:

    close(xenconsoled_slave);

Indeed. Please can you post a patch.

Attached.

Thanks.

Quoted 1 line

Ian.

#4 lore raw
In reply to Christoph Egger
Quoted 16 lines · Christoph Egger
Quoted 15 lines · On Tuesday 05 October 2010 12:08:18 Ian Campbell wrote:
Quoted 14 lines · Christoph Egger

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);
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

The last line is wrong. It should be:

    close(xenconsoled_slave);

Indeed. Please can you post a patch.

Attached.

applied, thanks