iommu: Restore lost return in iommu_report_device_fault()
PATCH 1/1 iommu: Restore lost return in iommu_report_device_fault()
From: Barak Biber <[email protected]>
When iommu_report_device_fault gets called with a partial fault it is supposed to collect the fault into the group and then return.
Instead the return was accidently deleted which results in trying to process the fault and an eventual crash.
Deleting the return was a typo, put it back.
--- drivers/iommu/io-pgfault.c | 1 + 1 file changed, 1 insertion(+)
drivers/iommu/io-pgfault.c +1 -0
@@ -170,6 +170,7 @@ void iommu_report_device_fault(struct device *dev, struct iopf_fault *evt)report_partial_fault (iopf_param, fault);iopf_put_dev_fault_param (iopf_param);/* A request that is not the last does not need to be ack'd */ +return ; }/*
base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b
Signature · 1 line
2.45.2
Quoted 5 lines · Jason Gunthorpe
From: Barak Biber<[email protected]>
When
iommu_report_device_faultgets called with a partial fault it is supposed to collect the fault into the group and then return.
Quoted 8 lines
Instead the return was accidently deleted which results in trying to process the fault and an eventual crash.
Deleting the return was a typo, put it back.
Fixes 3dfa64aecbaf ("iommu: Make iommu_report_device_fault() return void")Signed-off-by Barak Biber<[email protected]>Signed-off-by Jason Gunthorpe<[email protected]>
Thanks,
baolu
Quoted 2 lines · Jason Gunthorpe
drivers/iommu/io-pgfault.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.