mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
avoid a segfault on CD eject in KVM/QEmu
* src/qemu_driver.c: patch from Cole Robinson to avoid a segfault on KVM CD eject Daniel
This commit is contained in:
parent
54a4f8d44d
commit
53738f83a5
@ -1,3 +1,8 @@
|
|||||||
|
Wed Sep 3 14:51:03 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/qemu_driver.c: patch from Cole Robinson to avoid a segfault
|
||||||
|
on KVM CD eject
|
||||||
|
|
||||||
Wed Sep 3 14:37:06 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
Wed Sep 3 14:37:06 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/virsh.c: patch from Cole Robinson to add output on attach
|
* src/virsh.c: patch from Cole Robinson to add output on attach
|
||||||
|
@ -2974,7 +2974,10 @@ static int qemudDomainChangeCDROM(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
VIR_FREE(reply);
|
VIR_FREE(reply);
|
||||||
VIR_FREE(cmd);
|
VIR_FREE(cmd);
|
||||||
strcpy(olddisk->src, newdisk->src);
|
|
||||||
|
VIR_FREE(olddisk->src);
|
||||||
|
olddisk->src = newdisk->src;
|
||||||
|
newdisk->src = NULL;
|
||||||
olddisk->type = newdisk->type;
|
olddisk->type = newdisk->type;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user