summaryrefslogtreecommitdiffstats
path: root/block/partitions
diff options
context:
space:
mode:
authorXiaoyang Xu <xuxiaoyang2@huawei.com>2020-10-16 11:35:58 +0200
committerAlex Williamson <alex.williamson@redhat.com>2020-10-20 18:12:17 +0200
commit2e6cfd496f5b57034cf2aec738799571b5a52124 (patch)
treee3d4ec36020175bfb34add2a2aaf72e2a3711782 /block/partitions
parentvfio/pci: Clear token on bypass registration failure (diff)
downloadlinux-2e6cfd496f5b57034cf2aec738799571b5a52124.tar.xz
linux-2e6cfd496f5b57034cf2aec738799571b5a52124.zip
vfio iommu type1: Fix memory leak in vfio_iommu_type1_pin_pages
pfn is not added to pfn_list when vfio_add_to_pfn_list fails. vfio_unpin_page_external will exit directly without calling vfio_iova_put_vfio_pfn. This will lead to a memory leak. Fixes: a54eb55045ae ("vfio iommu type1: Add support for mediated devices") Signed-off-by: Xiaoyang Xu <xuxiaoyang2@huawei.com> [aw: simplified logic, add Fixes] Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'block/partitions')
0 files changed, 0 insertions, 0 deletions