[PATCH v2 04/12] bus/pci: reset VFIO device FD after release

Burakov, Anatoly anatoly.burakov at intel.com
Sat Oct 24 16:11:40 CEST 2026


On 10/24/2026 3:21 PM, David Marchand wrote:
> From: Stephen Hemminger <stephen at networkplumber.org>
> 
> The VFIO device fd is closed by dev_vfio_release_device() but is left
> in the interrupt handle, so freeing the handle on cleanup logs a bogus
> FD leak warning.
> 
> Mark dev_fd invalid after release.
> 
> In secondary process the request handle is unused and does not have to
> be set in the first place.
> 
> Fixes: d770ee9caed0 ("interrupts: warn on leaked FDs")
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---

Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>

-- 
Thanks,
Anatoly


More information about the dev mailing list