From: Chen Hanxiao Date: Thu, 20 Jul 2017 02:02:30 +0000 (+0800) Subject: LXC: set the right var to NULL X-Git-Tag: v3.6.0-rc1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75107ae516a445a7d7ccde17152fe6ae581f1d64;p=thirdparty%2Flibvirt.git LXC: set the right var to NULL For attaching hosdev, we should set dev->data.hostdev rather than dev->data.disk Signed-off-by: Chen Hanxiao --- diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 652e9cba03..6a9c528933 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -4358,7 +4358,7 @@ lxcDomainAttachDeviceLive(virConnectPtr conn, case VIR_DOMAIN_DEVICE_HOSTDEV: ret = lxcDomainAttachDeviceHostdevLive(driver, vm, dev); if (!ret) - dev->data.disk = NULL; + dev->data.hostdev = NULL; break; default: