Re: [PATCH 09/14] accel: Allocate NVMM vCPU using g_try_FOO()

2023-04-05 Thread Philippe Mathieu-Daudé
On 5/4/23 15:55, Alex Bennée wrote: Philippe Mathieu-Daudé writes: g_malloc0() can not fail. Use g_try_malloc0() instead. https://developer-old.gnome.org/glib/stable/glib-Memory-Allocation.html#glib-Memory-Allocation.description Signed-off-by: Philippe Mathieu-Daudé --- target/i386/nvmm/

Re: [PATCH 09/14] accel: Allocate NVMM vCPU using g_try_FOO()

2023-04-05 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > g_malloc0() can not fail. Use g_try_malloc0() instead. > > https://developer-old.gnome.org/glib/stable/glib-Memory-Allocation.html#glib-Memory-Allocation.description > > Signed-off-by: Philippe Mathieu-Daudé > --- > target/i386/nvmm/nvmm-all.c | 2 +- > 1 file

[PATCH 09/14] accel: Allocate NVMM vCPU using g_try_FOO()

2023-04-05 Thread Philippe Mathieu-Daudé
g_malloc0() can not fail. Use g_try_malloc0() instead. https://developer-old.gnome.org/glib/stable/glib-Memory-Allocation.html#glib-Memory-Allocation.description Signed-off-by: Philippe Mathieu-Daudé --- target/i386/nvmm/nvmm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g