On Sun, Jun 15, 2025 at 10:02:04PM -0700, Nicolin Chen wrote: > Do not forget to close mfd in the error paths, since none of the callers > would close it when ASSERT_NE(MAP_FAILED, buf) fails. > > Fixes: 0bcceb1f51c7 ("iommufd: Selftest coverage for IOMMU_IOAS_MAP_FILE") > Cc: sta...@vger.kernel.org > Signed-off-by: Nicolin Chen <nicol...@nvidia.com> > --- > tools/testing/selftests/iommu/iommufd_utils.h | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-)
Reviewed-by: Jason Gunthorpe <j...@nvidia.com> Jason