From: Daniel P. Berrange Date: Tue, 12 Mar 2013 11:52:09 +0000 (+0000) Subject: Add missing break in LXC loop device setup X-Git-Tag: v1.0.4-rc1~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32b7e92db6e103751e92940fad0b5b8fa2a942fe;p=thirdparty%2Flibvirt.git Add missing break in LXC loop device setup When setting up disks with loop devices for LXC, one of the switch cases was missing a 'break' causing it to fallthrough to an error condition. Signed-off-by: Daniel P. Berrange --- diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index ce4607094d..128271f484 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -448,6 +448,7 @@ static int virLXCControllerSetupLoopDevices(virLXCControllerPtr ctrl) fd = virLXCControllerSetupLoopDeviceDisk(disk); if (fd < 0) goto cleanup; + break; default: virReportError(VIR_ERR_CONFIG_UNSUPPORTED,