qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/2] hw/smbios: support for type 41 (onboard devices exten


From: Vincent Bernat
Subject: Re: [PATCH v2 1/2] hw/smbios: support for type 41 (onboard devices extended information)
Date: Thu, 01 Apr 2021 10:46:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

 ❦  1 avril 2021 09:41 +01, Daniel P. Berrangé:

>> +            t = calloc(1, sizeof(struct type41_instance));
>> +            if (!t) {
>> +                error_setg(errp,
>> +                           "Unable to allocate memory for a new type 41 
>> instance");
>> +                return;
>> +            }
>
> QEMU uses GLib allocation functions throughout, which abort
> on OOM. So replace this with g_new0.

Ack. Will be fixed on the next version. Thanks!
-- 
Make input easy to proofread.
            - The Elements of Programming Style (Kernighan & Plauger)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]