diff options
author | Keqian Zhu <zhukeqian1@huawei.com> | 2021-01-22 17:26:35 +0800 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-02-01 13:40:52 -0700 |
commit | 4a19f37a3dd3f29997735e61b25ddad24b8abe73 (patch) | |
tree | db83d3789ce5c9d0d69304cf5ebff0f5369a3a69 /lib/gen_crc64table.c | |
parent | d0a78f91761fcd837da1e7a4b0f8368873adc646 (diff) | |
download | linux-stable-4a19f37a3dd3f29997735e61b25ddad24b8abe73.tar.gz linux-stable-4a19f37a3dd3f29997735e61b25ddad24b8abe73.tar.bz2 linux-stable-4a19f37a3dd3f29997735e61b25ddad24b8abe73.zip |
vfio/iommu_type1: Fix some sanity checks in detach group
vfio_sanity_check_pfn_list() is used to check whether pfn_list and
notifier are empty when remove the external domain, so it makes a
wrong assumption that only external domain will use the pinning
interface.
Now we apply the pfn_list check when a vfio_dma is removed and apply
the notifier check when all domains are removed.
Fixes: a54eb55045ae ("vfio iommu type1: Add support for mediated devices")
Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/gen_crc64table.c')
0 files changed, 0 insertions, 0 deletions