Re: [dpdk-dev] [PATCH v2 RESEND] vfio: fix resource leak when mapping fails

2020-10-05 Thread David Marchand
On Fri, Sep 11, 2020 at 1:08 PM wangyunjian wrote: > > From: Yunjian Wang > > Currently, only the 'vfio_dev_fd' is closed in failure path, so > some resources are not released(such as 'vfio_group_fd'). The > rte_vfio_release_device() should be used to avoid this problem. > > Fixes: 33604c31354a (

Re: [dpdk-dev] [PATCH v2 RESEND] vfio: fix resource leak when mapping fails

2020-09-17 Thread Burakov, Anatoly
On 11-Sep-20 12:08 PM, wangyunjian wrote: From: Yunjian Wang Currently, only the 'vfio_dev_fd' is closed in failure path, so some resources are not released(such as 'vfio_group_fd'). The rte_vfio_release_device() should be used to avoid this problem. Fixes: 33604c31354a ("vfio: refactor PCI BA

[dpdk-dev] [PATCH v2 RESEND] vfio: fix resource leak when mapping fails

2020-09-11 Thread wangyunjian
From: Yunjian Wang Currently, only the 'vfio_dev_fd' is closed in failure path, so some resources are not released(such as 'vfio_group_fd'). The rte_vfio_release_device() should be used to avoid this problem. Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") Cc: sta...@dpdk.org Signed-off-