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 <chenhanxiao@gmail.com>
This commit is contained in:
Chen Hanxiao 2017-07-20 10:02:30 +08:00 committed by Cédric Bosdonnat
parent 9af764e86a
commit 75107ae516

View File

@ -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: