mirror of https://github.com/xqemu/xqemu.git
savevm: qmp_xen_save_devices_state(): use error_setg_file_open()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Acked-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
7581766b71
commit
1befce9652
2
savevm.c
2
savevm.c
|
@ -2410,7 +2410,7 @@ void qmp_xen_save_devices_state(const char *filename, Error **errp)
|
||||||
|
|
||||||
f = qemu_fopen(filename, "wb");
|
f = qemu_fopen(filename, "wb");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
error_set(errp, QERR_OPEN_FILE_FAILED, filename);
|
error_setg_file_open(errp, errno, filename);
|
||||||
goto the_end;
|
goto the_end;
|
||||||
}
|
}
|
||||||
ret = qemu_save_device_state(f);
|
ret = qemu_save_device_state(f);
|
||||||
|
|
Loading…
Reference in New Issue