aboutsummaryrefslogtreecommitdiff
path: root/target/ppc
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2022-08-02 13:24:46 +0200
committerLaurent Vivier <laurent@vivier.eu>2022-08-04 13:46:08 +0200
commitaed5da45daf734ddc543c0791e877dac75e16f61 (patch)
tree745a1f8a35e24e8e365a262edbdbb1099f14df21 /target/ppc
parent9567fc1665b6649d2aff0184f68377a9e7c30dd9 (diff)
vdpa: Fix file descriptor leak on get features error
File descriptor vdpa_device_fd is not free in the case of returning error from vhost_vdpa_get_features. Fixing it by making all errors go to the same error path. Resolves: Coverity CID 1490785 Fixes: 8170ab3f43 ("vdpa: Extract get features part from vhost_vdpa_get_max_queue_pairs") Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20220802112447.249436-2-eperezma@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target/ppc')
0 files changed, 0 insertions, 0 deletions