]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu: Restore lost return in iommu_report_device_fault()
authorBarak Biber <bbiber@nvidia.com>
Thu, 1 Aug 2024 12:26:04 +0000 (09:26 -0300)
committerJoerg Roedel <jroedel@suse.de>
Fri, 2 Aug 2024 13:58:05 +0000 (15:58 +0200)
commitfca5b78511e98bdff2cdd55c172b23200a7b3404
tree4e2b764643ac6151fa4335d73d7897c55c464e38
parent8400291e289ee6b2bf9779ff1c83a291501f017b
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: 3dfa64aecbaf ("iommu: Make iommu_report_device_fault() return void")
Signed-off-by: Barak Biber <bbiber@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/0-v1-e7153d9c8cee+1c6-iommu_fault_fix_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/io-pgfault.c