Skip to content

Commit d09de8a

Browse files
BBiber1Sasha Levin
authored andcommitted
iommu: Restore lost return in iommu_report_device_fault()
[ Upstream commit fca5b78 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 5fc8ce3 commit d09de8a

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
@@ -192,6 +192,7 @@ void iommu_report_device_fault(struct device *dev, struct iopf_fault *evt)
192192
report_partial_fault(iopf_param, fault);
193193
iopf_put_dev_fault_param(iopf_param);
194194
/* A request that is not the last does not need to be ack'd */
195+
return;
195196
}
196197

197198
/*

0 commit comments

Comments
 (0)