Add missing 'break' statement.
authorKaushik Kumar Ram <kaushik@rice.edu>
Fri, 26 Aug 2011 13:58:41 +0000 (14:58 +0100)
committerKaushik Kumar Ram <kaushik@rice.edu>
Fri, 26 Aug 2011 13:58:41 +0000 (14:58 +0100)
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>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_pci.c

index 331e0a5cbbbd702cd9a1d76fedbcca5b2a9a5c27..1669e17027b45c3098e07025f434a78834b30037 100644 (file)
@@ -696,6 +696,7 @@ static int do_pci_add(libxl__gc *gc, uint32_t domid, libxl_device_pci *pcidev, i
             }
         }
         fclose(f);
+        break;
     }
     default:
         abort();