All of lore.kernel.org
 help / color / mirror / Atom feed
* Minor bug fix in libxl_pci.c
@ 2011-08-18  8:45 Kaushik Kumar Ram
  2011-08-18  9:27 ` Ian Campbell
  2011-08-26 13:58 ` Ian Jackson
  0 siblings, 2 replies; 3+ messages in thread
From: Kaushik Kumar Ram @ 2011-08-18  8:45 UTC (permalink / raw)
  To: xen-devel

Add missing 'break' statement.

Without the 'break', assigning a pci device to a PV guest results in an abort,
since the code always falls through to the default abort case in the switch
statement.

Signed-off-by: Kaushik Kumar Ram <kaushik@rice.edu>

diff -r 8d6edc3d26d2 -r 7344ec5fcc45 tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c   Sat Aug 13 10:14:58 2011 +0100
+++ b/tools/libxl/libxl_pci.c   Thu Aug 18 03:42:11 2011 -0500
@@ -696,6 +696,7 @@ static int do_pci_add(libxl__gc *gc, uin
             }
         }
         fclose(f);
+       break;
     }
     default:
         abort();


--Kaushik

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

* Re: Minor bug fix in libxl_pci.c
  2011-08-18  8:45 Minor bug fix in libxl_pci.c Kaushik Kumar Ram
@ 2011-08-18  9:27 ` Ian Campbell
  2011-08-26 13:58 ` Ian Jackson
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2011-08-18  9:27 UTC (permalink / raw)
  To: Kaushik Kumar Ram; +Cc: xen-devel

On Thu, 2011-08-18 at 09:45 +0100, Kaushik Kumar Ram wrote:
> Add missing 'break' statement.
> 
> Without the 'break', assigning a pci device to a PV guest results in an abort,
> since the code always falls through to the default abort case in the switch
> statement.
> 
> Signed-off-by: Kaushik Kumar Ram <kaushik@rice.edu>

Uh, absolutely right, my bad! (cset 23714:97cb910d39b3)

Acked-by: Ian Campbell <ian.campbell@citrix.com>

> diff -r 8d6edc3d26d2 -r 7344ec5fcc45 tools/libxl/libxl_pci.c
> --- a/tools/libxl/libxl_pci.c   Sat Aug 13 10:14:58 2011 +0100
> +++ b/tools/libxl/libxl_pci.c   Thu Aug 18 03:42:11 2011 -0500
> @@ -696,6 +696,7 @@ static int do_pci_add(libxl__gc *gc, uin
>              }
>          }
>          fclose(f);
> +       break;
>      }
>      default:
>          abort();
> 
> 
> --Kaushik
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

* Re: Minor bug fix in libxl_pci.c
  2011-08-18  8:45 Minor bug fix in libxl_pci.c Kaushik Kumar Ram
  2011-08-18  9:27 ` Ian Campbell
@ 2011-08-26 13:58 ` Ian Jackson
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Jackson @ 2011-08-26 13:58 UTC (permalink / raw)
  To: Kaushik Kumar Ram; +Cc: xen-devel

Kaushik Kumar Ram writes ("[Xen-devel] Minor bug fix in libxl_pci.c"):
> Add missing 'break' statement.
> 
> Without the 'break', assigning a pci device to a PV guest results in
> an abort, since the code always falls through to the default abort
> case in the switch statement.
> 
> Signed-off-by: Kaushik Kumar Ram <kaushik@rice.edu>

Thanks.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>

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

end of thread, other threads:[~2011-08-26 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-18  8:45 Minor bug fix in libxl_pci.c Kaushik Kumar Ram
2011-08-18  9:27 ` Ian Campbell
2011-08-26 13:58 ` Ian Jackson

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.