Re: [PATCH] hw/xtensa: replace calloc with g_new0 in mx_pic

Max Filippov <[email protected]> Sun, 7 Jun 2026 13:46:22 -0700
Newsgroups org.nongnu.qemu-trivial,org.nongnu.qemu-devel
Message-ID <CAMo8BfJMJ+hf5MBptz-sFojCLAYdEsiduR1xbMhJs2kN1Ju-yQ@mail.gmail.com>
On Thu, Jun 4, 2026 at 9:29 AM Ajinkya Udgirkar
<[email protected]> wrote:
>
> Replace libc calloc() with GLib g_new0() for consistency with the
> rest of the QEMU codebase. g_new0() aborts on allocation failure
> rather than returning NULL, which matches QEMU's allocation policy.
>
> Signed-off-by: Ajinkya Udgirkar <[email protected]>
> ---
>  hw/xtensa/mx_pic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Max Filippov <[email protected]>

-- 
Thanks.
-- Max