• W
    libxl: fix vm lock overwritten bug · 9ac94507
    Wang Yufei 提交于
    In libxl driver we do virObjectRef in libxlDomainObjBeginJob,
    If virCondWaitUntil failed, it goes to error, do virObjectUnref,
    There's a chance that someone undefine the vm at the same time,
    and refs unref to zero, vm is freed in libxlDomainObjBeginJob.
    But the vm outside function is not Null, we do virObjectUnlock(vm).
    That's how we overwrite the vm memory after it's freed. I fix it.
    Signed-off-by: NWang Yufei <james.wangyufei@huawei.com>
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    9ac94507
virdomainobjlist.c 29.0 KB