]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Ensure failure to create macvtap device aborts LXC start
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Nov 2012 16:38:01 +0000 (16:38 +0000)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:53:39 +0000 (16:53 -0500)
commitf928284b85287551531febf805bf16c8068c41f1
treecc0a2e636dfdad51a2ba454af89ba286be4bd391
parent74aa3ffec212989375599974e1cb984b1993aa0f
Ensure failure to create macvtap device aborts LXC start

A mistaken initialization of 'ret' caused failure to create
macvtap devices to be ignored. The libvirt_lxc process
would later fail to start due to missing devices

Also make sure code checks '< 0' and not '!= 0' since only
-1 is considered an error condition

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 43db9cf4ed72e20021907073a656b5f3d7fd1f28)
src/lxc/lxc_process.c