mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
qemu: Jump to cleanup label on umount failure
Similar to other error paths in qemuDomainUnshareNamespace(), jump to the cleanup label on umount error instead of directly returning -1. Signed-off-by: Jim Fehlig <jfehlig@suse.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5c4007ddc6
commit
c3f16cea3b
@ -779,7 +779,7 @@ qemuDomainUnshareNamespace(virQEMUDriverConfig *cfg,
|
|||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
if (umount("/dev") < 0) {
|
if (umount("/dev") < 0) {
|
||||||
virReportSystemError(errno, "%s", _("failed to umount devfs on /dev"));
|
virReportSystemError(errno, "%s", _("failed to umount devfs on /dev"));
|
||||||
return -1;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
#endif /* !defined(__linux__) */
|
#endif /* !defined(__linux__) */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user