提交 75107ae5 编写于 作者: C Chen Hanxiao 提交者: Cédric Bosdonnat

LXC: set the right var to NULL

   For attaching hosdev, we should set dev->data.hostdev
   rather than dev->data.disk
Signed-off-by: NChen Hanxiao <chenhanxiao@gmail.com>
上级 9af764e8
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册