Re: [PATCH 1/2] vdpa: Fix file descriptor leak on get features error

2022-08-02 Thread Michael S. Tsirkin
On Tue, Aug 02, 2022 at 02:07:04PM +0200, Laurent Vivier wrote: > On 02/08/2022 13:24, Eugenio Pérez wrote: > > 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. > > > >

Re: [PATCH 1/2] vdpa: Fix file descriptor leak on get features error

2022-08-02 Thread Laurent Vivier
On 02/08/2022 13:24, Eugenio Pérez wrote: 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

[PATCH 1/2] vdpa: Fix file descriptor leak on get features error

2022-08-02 Thread Eugenio Pérez
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")