Re: [PATCH AUTOSEL 4.4 50/60] vfio/pci: fix memory leaks of eventfd ctx

2020-06-17 Thread Alex Williamson
On Wed, 17 Jun 2020 21:29:54 -0400 Sasha Levin wrote: > From: Qian Cai > > [ Upstream commit 1518ac272e789cae8c555d69951b032a275b7602 ] > > 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

[PATCH AUTOSEL 4.4 50/60] vfio/pci: fix memory leaks of eventfd ctx

2020-06-17 Thread Sasha Levin
From: Qian Cai [ Upstream commit 1518ac272e789cae8c555d69951b032a275b7602 ] 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