From: Kaushik Kumar Ram Date: Fri, 26 Aug 2011 13:58:41 +0000 (+0100) Subject: Add missing 'break' statement. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~9938 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eab869a86a942e01a799bb3ec56cb24105902461;p=xen.git 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 Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 331e0a5cbb..1669e17027 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -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();