Re: [PATCH] hw/display/virtio-gpu: drop redundant node->value NULL checks

Akihiko Odaki <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <[email protected]>
On 2026/07/30 20:47, [email protected] wrote:
> From: Marc-André Lureau <[email protected]>
> 
> QAPI-generated list visitors guarantee that node->value is never NULL:
> the input visitor allocates it via g_malloc0() in visit_start_struct(),
> and on failure the entire list parse is aborted and freed.
> 
> Remove the unnecessary NULL checks from both callsites iterating
> g->conf.outputs.
> 
> Resolves: Coverity CID 1664272
> Fixes: 8dc8449a678f ("hw/display/virtio-gpu: Avoid leaking migration blocker")
> Signed-off-by: Marc-André Lureau <[email protected]>

Reviewed-by: Akihiko Odaki <[email protected]>

Regards,
Akihiko Odaki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.