Thread (6 messages) flat view 6 messages, 3 authors, 2024-08-14

Re: [bug report] iommu/arm-smmu-v3: Event cannot be printed in some scenarios

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2024-08-13 17:57:00
Also in: linux-iommu, lkml

Possibly related (same subject, not in this thread)

On Thu, Aug 08, 2024 at 01:50:17PM +0000, Pranjal Shrivastava wrote:
Kunkun -- Please try this diff and check if it fixes the problem?
This looks OK to me, you should send it as a proper patch..
 	if (!(fault->prm.flags & IOMMU_FAULT_PAGE_REQUEST_LAST_PAGE)) {
-		report_partial_fault(iopf_param, fault);
+		ret = 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 */
+
+		if (ret)
+			goto err_bad_iopf;
 	}
rebase it on -rc3 and there will be a return line added here
too.. Maybe you don't want the goto in that cast

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help