Few steps allocate new resources, and all of the allocated can be
checked to avoid trying to free an invalid one.

This series includes an already posted patch [1], because it must be applied
on top of that.

[1] https://lists.nongnu.org/archive/html/qemu-devel/2022-08/msg00089.html

Eugenio Pérez (2):
  vdpa: Fix file descriptor leak on get features error
  vdpa: Merge all net_init_vhost_vdpa error goto

 net/vhost-vdpa.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

-- 
2.31.1



Reply via email to