[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Add missing 'break' statement.



# HG changeset patch
# User Kaushik Kumar Ram <kaushik@xxxxxxxx>
# Date 1314367121 -3600
# Node ID 469aa1fbd843d0797345ebf1e3d6c6df27ce744b
# Parent  1ec46033135e3a9f8b24a3e67d560a7ff2a826d8
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@xxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 1ec46033135e -r 469aa1fbd843 tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c   Fri Aug 26 13:06:39 2011 +0100
+++ b/tools/libxl/libxl_pci.c   Fri Aug 26 14:58:41 2011 +0100
@@ -696,6 +696,7 @@
             }
         }
         fclose(f);
+        break;
     }
     default:
         abort();

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.