mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
xen: properly report out of memory when hvm_type is too small
This commit is contained in:
parent
a3de9829d8
commit
c76a17b428
@ -2598,7 +2598,7 @@ xenHypervisorMakeCapabilitiesInternal(virConnectPtr conn,
|
|||||||
&line[subs[1].rm_so],
|
&line[subs[1].rm_so],
|
||||||
subs[1].rm_eo-subs[1].rm_so,
|
subs[1].rm_eo-subs[1].rm_so,
|
||||||
sizeof(hvm_type)) == NULL)
|
sizeof(hvm_type)) == NULL)
|
||||||
return NULL;
|
goto no_memory;
|
||||||
} else if (regexec (&flags_pae_rec, line, 0, NULL, 0) == 0)
|
} else if (regexec (&flags_pae_rec, line, 0, NULL, 0) == 0)
|
||||||
host_pae = 1;
|
host_pae = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user