mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
9af764e86a
commit
75107ae516
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user