Re: [PATCH] vfio/pci: Fix memory leaks of eventfd context in vfio_pci_release()
From: Markus Elfring
Date: Mon May 11 2020 - 10:33:01 EST
> Finished a qemu-kvm (-device vfio-pci,host=0001:01:00.0) triggers a few
> memory leaks after a while because vfio_pci_set_ctx_trigger_single()
> calls eventfd_ctx_fdget() without the matching eventfd_ctx_put() later.
> Fix it by calling eventfd_ctx_put() for those memory in
> vfio_pci_release() before vfio_device_release().
â
Will a wording fine-tuning become helpful for this change description?
Would you like to add the tag âFixesâ to the commit message?
Regards,
Markus