diff options
author | Nicolin Chen <nicolinc@nvidia.com> | 2023-01-19 23:42:04 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-01-23 14:27:40 -0400 |
commit | 9fabbdf338b701f2d763d9edbc3e82ce1e7fa1b4 (patch) | |
tree | bcd4f5eba279f9af1dc79f5165f41aeadd1fb1b3 /tools/testing/selftests/iommu | |
parent | fc3873095a09ce969543fa4a17fee271c8ca3566 (diff) | |
download | lwn-9fabbdf338b701f2d763d9edbc3e82ce1e7fa1b4.tar.gz lwn-9fabbdf338b701f2d763d9edbc3e82ce1e7fa1b4.zip |
selftests: iommu: Fix test_cmd_destroy_access() call in user_copy
The test_cmd_destroy_access() should end with a semicolon, so add one.
There is a test_ioctl_destroy(ioas_id) following already, so drop one.
Fixes: 57f0988706fe ("iommufd: Add a selftest")
Link: https://lore.kernel.org/r/20230120074204.1368-1-nicolinc@nvidia.com
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/testing/selftests/iommu')
-rw-r--r-- | tools/testing/selftests/iommu/iommufd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/iommu/iommufd.c b/tools/testing/selftests/iommu/iommufd.c index 8aa8a346cf22..fa08209268c4 100644 --- a/tools/testing/selftests/iommu/iommufd.c +++ b/tools/testing/selftests/iommu/iommufd.c @@ -1259,7 +1259,7 @@ TEST_F(iommufd_mock_domain, user_copy) test_cmd_destroy_access_pages( access_cmd.id, access_cmd.access_pages.out_access_pages_id); - test_cmd_destroy_access(access_cmd.id) test_ioctl_destroy(ioas_id); + test_cmd_destroy_access(access_cmd.id); test_ioctl_destroy(ioas_id); } |