Skip to content

Commit fca5b78

Browse files
BBiber1joergroedel
authored andcommitted
iommu: Restore lost return in iommu_report_device_fault()
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. Fixes: 3dfa64a ("iommu: Make iommu_report_device_fault() return void") Signed-off-by: Barak Biber <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 8400291 commit fca5b78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iommu/io-pgfault.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ void iommu_report_device_fault(struct device *dev, struct iopf_fault *evt)
170170
report_partial_fault(iopf_param, fault);
171171
iopf_put_dev_fault_param(iopf_param);
172172
/* A request that is not the last does not need to be ack'd */
173+
return;
173174
}
174175

175176
/*

0 commit comments

Comments
 (0)