iommufd/device: Fix hwpt at err_unresv in iommufd_device_do_replace()
PATCH 1/1 iommufd/device: Fix hwpt at err_unresv in iommufd_device_do_replace()
The rewind routine should remove the reserved iovas added to the new hwpt.
--- drivers/iommu/iommufd/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/iommufd/device.c +1 -1
@@ -526,7 +526,7 @@ iommufd_device_do_replace(struct iommufd_device *idev, err_unresv:if (hwpt_is_paging (hwpt))iommufd_group_remove_reserved_iova (igroup, -to_hwpt_paging (old_hwpt)); +to_hwpt_paging (hwpt)); err_unlock:mutex_unlock (&idev->igroup->lock);return ERR_PTR (rc);
Signature · 1 line
2.43.0
Quoted 10 lines
From: Nicolin Chen <[email protected]>
Sent: Thursday, July 18, 2024 1:02 PMThe rewind routine should remove the reserved iovas added to the new hwpt.
Fixes 89db31635c87 ("iommufd: Derive iommufd_hwpt_paging from
iommufd_hw_pagetable")Signed-off-by Nicolin Chen <[email protected]>
Quoted 6 lines · Kevin
Quoted 6 lines
From: Nicolin Chen <[email protected]>
Sent: Thursday, July 18, 2024 1:02 PMThe rewind routine should remove the reserved iovas added to the new hwpt.
Quoted 6 lines
Quoted 4 lines
Fixes 89db31635c87 ("iommufd: Derive iommufd_hwpt_paging from
iommufd_hw_pagetable")Signed-off-by Nicolin Chen <[email protected]>Reviewed-by Kevin Tian <[email protected]>
Jason, it seems that we haven't merged this patch, right?
It still applies against v6.11-rc1. So no need of respin.
Thanks
Nicolin
Jason Gunthorpe
maintainerQuoted 13 lines · Nicolin Chen
Quoted 11 lines · Kevin
Quoted 10 lines
From: Nicolin Chen <[email protected]>
Sent: Thursday, July 18, 2024 1:02 PMThe rewind routine should remove the reserved iovas added to the new hwpt.
Fixes 89db31635c87 ("iommufd: Derive iommufd_hwpt_paging from
iommufd_hw_pagetable")Signed-off-by Nicolin Chen <[email protected]>
Quoted 5 lines
Quoted 1 line
Reviewed-by Kevin Tian <[email protected]>Jason, it seems that we haven't merged this patch, right?
It still applies against v6.11-rc1. So no need of respin.
Yes, I will pick it for the rc1 cycle
Jason
Quoted 8 lines · Nicolin Chen
The rewind routine should remove the reserved iovas added to the new hwpt.
Fixes 89db31635c87 ("iommufd: Derive iommufd_hwpt_paging from iommufd_hw_pagetable")Signed-off-by Nicolin Chen <[email protected]>--- drivers/iommu/iommufd/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-rc thanks
Jason