qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] net: Fix various Coverity issues in vhost-user and passt
@ 2025-07-17 15:07 Laurent Vivier
  2025-07-17 15:08 ` [PATCH 1/6] net/passt: Remove unused "err" from passt_vhost_user_event() (CID 1612375) Laurent Vivier
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Laurent Vivier @ 2025-07-17 15:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael S. Tsirkin, Jason Wang, Laurent Vivier

This patch series addresses several static analysis warnings reported by
Coverity (CIDs 1612365, 1612368, 1612369, 1612371, 1612372, 1612375)
in the vhost-user and passt networking code.

The changes are mostly minor cleanups and fixes:

Three patches remove an unused "err" variable and its associated
unreachable error handling block.

One patch removes another piece of dead code in an error path by
refactoring away a goto.

The remaining two patches initialize a pointer to prevent a potential
illegal memory access and add a check for the return value of
g_remove() to log potential errors.

Laurent Vivier (6):
  net/passt: Remove unused "err" from passt_vhost_user_event() (CID
    1612375)
  net/vhost-user: Remove unused "err" from net_vhost_user_event() (CID
    1612372)
  net/passt: Remove dead code in passt_vhost_user_start error path (CID
    1612371)
  net/passt: Check return value of g_remove() in net_passt_cleanup()
    (CID 1612369)
  net/passt: Initialize "error" variable in net_passt_send() (CID
    1612368)
  net/vhost-user: Remove unused "err" from chr_closed_bh() (CID 1612365)

 net/passt.c      | 22 +++++++---------------
 net/vhost-user.c |  9 ---------
 2 files changed, 7 insertions(+), 24 deletions(-)

-- 
2.49.0




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-07-19 20:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-17 15:07 [PATCH 0/6] net: Fix various Coverity issues in vhost-user and passt Laurent Vivier
2025-07-17 15:08 ` [PATCH 1/6] net/passt: Remove unused "err" from passt_vhost_user_event() (CID 1612375) Laurent Vivier
2025-07-19 19:52   ` Peter Maydell
2025-07-17 15:08 ` [PATCH 2/6] net/vhost-user: Remove unused "err" from net_vhost_user_event() (CID 1612372) Laurent Vivier
2025-07-19 19:53   ` Peter Maydell
2025-07-17 15:08 ` [PATCH 3/6] net/passt: Remove dead code in passt_vhost_user_start error path (CID 1612371) Laurent Vivier
2025-07-19 19:53   ` Peter Maydell
2025-07-17 15:08 ` [PATCH 4/6] net/passt: Check return value of g_remove() in net_passt_cleanup() (CID 1612369) Laurent Vivier
2025-07-19 19:52   ` Peter Maydell
2025-07-17 15:08 ` [PATCH 5/6] net/passt: Initialize "error" variable in net_passt_send() (CID 1612368) Laurent Vivier
2025-07-19 19:53   ` Peter Maydell
2025-07-17 15:08 ` [PATCH 6/6] net/vhost-user: Remove unused "err" from chr_closed_bh() (CID 1612365) Laurent Vivier
2025-07-19 19:53   ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).