]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add missing break in LXC loop device setup
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 12 Mar 2013 11:52:09 +0000 (11:52 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 12 Mar 2013 11:52:52 +0000 (11:52 +0000)
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 <berrange@redhat.com>
src/lxc/lxc_controller.c

index ce4607094d01acfddce8cbab19a835622a65cf6a..128271f484de405644b02387feee082a6fb2ed06 100644 (file)
@@ -448,6 +448,7 @@ static int virLXCControllerSetupLoopDevices(virLXCControllerPtr ctrl)
             fd = virLXCControllerSetupLoopDeviceDisk(disk);
             if (fd < 0)
                 goto cleanup;
+            break;
 
         default:
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,