[libvirt] [PATCH v2 2/4] util: make allocation functions abort on OOM
Michal Privoznik
mprivozn at redhat.com
Thu Sep 12 14:44:37 UTC 2019
On 9/12/19 1:31 PM, Daniel P. Berrangé wrote:
> The functions are left returning an "int" to avoid an immediate
> big-bang cleanup. They'll simply never return anything other
> than 0, except for virInsertN which can still return an error
> if the requested insertion index is out of range. Interestingly
> in that case, the _QUIET function would none the less report
> an error.
>
> Reviewed-by: Ján Tomko <jtomko at redhat.com>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> src/util/viralloc.c | 203 +++++++++++---------------------------------
> src/util/viralloc.h | 133 ++++++++++-------------------
> 2 files changed, 93 insertions(+), 243 deletions(-)
>
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
Michal
More information about the libvir-list
mailing list