mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +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],
|
||||
subs[1].rm_eo-subs[1].rm_so,
|
||||
sizeof(hvm_type)) == NULL)
|
||||
return NULL;
|
||||
goto no_memory;
|
||||
} else if (regexec (&flags_pae_rec, line, 0, NULL, 0) == 0)
|
||||
host_pae = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user