Skip to content

Commit 0108b7b

Browse files
committed
Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd
Pull iommufd fixes from Jason Gunthorpe: - Incorrect error unwind in iommufd_device_do_replace() - Correct a sparse warning missing static * tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd: iommufd/selftest: Make dirty_ops static iommufd/device: Fix hwpt at err_unresv in iommufd_device_do_replace()
2 parents 521b1e7 + cf1e515 commit 0108b7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/iommu/iommufd/device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ iommufd_device_do_replace(struct iommufd_device *idev,
526526
err_unresv:
527527
if (hwpt_is_paging(hwpt))
528528
iommufd_group_remove_reserved_iova(igroup,
529-
to_hwpt_paging(old_hwpt));
529+
to_hwpt_paging(hwpt));
530530
err_unlock:
531531
mutex_unlock(&idev->igroup->lock);
532532
return ERR_PTR(rc);

drivers/iommu/iommufd/selftest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static int mock_domain_read_and_clear_dirty(struct iommu_domain *domain,
273273
return 0;
274274
}
275275

276-
const struct iommu_dirty_ops dirty_ops = {
276+
static const struct iommu_dirty_ops dirty_ops = {
277277
.set_dirty_tracking = mock_domain_set_dirty_tracking,
278278
.read_and_clear_dirty = mock_domain_read_and_clear_dirty,
279279
};

0 commit comments

Comments
 (0)