linux-yocto/drivers/vfio
Zilin Guan f0e6e7b435 vfio/pds: replace bitmap_free with vfree
[ Upstream commit acb59a4bb8ed34e738a4c3463127bf3f6b5e11a9 ]

host_seq_bmp is allocated with vzalloc but is currently freed with
bitmap_free, which uses kfree internally. This mismach prevents the
resource from being released properly and may result in memory leaks
or other issues.

Fix this by freeing host_seq_bmp with vfree to match the vzalloc
allocation.

Fixes: f232836a91 ("vfio/pds: Add support for dirty page tracking")
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Link: https://lore.kernel.org/r/20250913153154.1028835-1-zilin@seu.edu.cn
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 11:58:03 +02:00
..
cdx
fsl-mc
mdev
pci vfio/pds: replace bitmap_free with vfree 2025-10-15 11:58:03 +02:00
platform Revert "vfio/platform: check the bounds of read/write syscalls" 2025-02-21 13:57:27 +01:00
container.c
device_cdev.c
group.c vfio: Fix unbalanced vfio_df_close call in no-iommu mode 2025-08-15 12:08:59 +02:00
iommufd.c vfio: Fix unbalanced vfio_df_close call in no-iommu mode 2025-08-15 12:08:59 +02:00
iova_bitmap.c iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index() 2025-02-08 09:52:22 +01:00
Kconfig
Makefile
vfio_iommu_spapr_tce.c
vfio_iommu_type1.c vfio/type1: conditional rescheduling while pinning 2025-08-28 16:28:29 +02:00
vfio_main.c vfio: Prevent open_count decrement to negative 2025-08-15 12:08:59 +02:00
vfio.h
virqfd.c