diff options
| author | 2021-09-24 17:57:03 +0200 | |
|---|---|---|
| committer | 2021-09-30 12:46:45 -0600 | |
| commit | 65cdbf10633783647c45eb22f0e70f193fee3789 (patch) | |
| tree | 0753a442454722eb9dda790683901a12db4faff2 /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | vfio/spapr_tce: reject mediated devices (diff) | |
| download | linux-dev-65cdbf10633783647c45eb22f0e70f193fee3789.tar.xz linux-dev-65cdbf10633783647c45eb22f0e70f193fee3789.zip | |
vfio/iommu_type1: initialize pgsize_bitmap in ->open
Ensure pgsize_bitmap is always valid by initializing it to PAGE_MASK
in vfio_iommu_type1_open and remove the now pointless update for
the external domain case in vfio_iommu_type1_attach_group, which was
just setting pgsize_bitmap to PAGE_MASK when only external domains
were attached.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210924155705.4258-14-hch@lst.de
[aw: s/ULONG_MAX/PAGE_MASK/ per discussion in link]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
