Skip to content
Snippets Groups Projects
Commit 26930260 authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé Committed by Dr. David Alan Gilbert
Browse files

tools/virtiofsd: Check vu_init() return value (CID 1435958)


Since commit 6f5fd837, vu_init() can fail if malloc() returns NULL.

This fixes the following Coverity warning:

  CID 1435958 (#1 of 1): Unchecked return value (CHECKED_RETURN)

Fixes: 6f5fd837 ("libvhost-user: support many virtqueues")
Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20201102092339.2034297-1-philmd@redhat.com>
Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
parent dcaac9f1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment