]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vfio/platform: Disable virqfds on cleanup
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 8 Mar 2024 23:05:26 +0000 (16:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:30 +0000 (15:28 +0200)
commit74c564b7f008eb249c2a97eefc5a7639f280590e
tree3a5638755be4bc3f55bcba2aa3b8aeaa62497a8d
parent04a4a017b9ffd7b0f427b8c376688d14cb614651
vfio/platform: Disable virqfds on cleanup

[ Upstream commit fcdc0d3d40bc26c105acf8467f7d9018970944ae ]

irqfds for mask and unmask that are not specifically disabled by the
user are leaked.  Remove any irqfds during cleanup

Cc: Eric Auger <eric.auger@redhat.com>
Cc: <stable@vger.kernel.org>
Fixes: a7fa7c77cf15 ("vfio/platform: implement IRQ masking/unmasking via an eventfd")
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20240308230557.805580-6-alex.williamson@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vfio/platform/vfio_platform_irq.c