Page MenuHomeFreeBSD

arm64/iommu: Fix a resource leak in smmu_domain_alloc()
ClosedPublic

Authored by markj on Jan 12 2026, 9:16 PM.
Tags
None
Referenced Files
F162634162: D54676.diff
Wed, Jul 15, 7:02 AM
F162634161: D54676.diff
Wed, Jul 15, 7:02 AM
Unknown Object (File)
Fri, Jul 3, 5:11 AM
Unknown Object (File)
Wed, Jul 1, 11:55 PM
Unknown Object (File)
Tue, Jun 30, 11:34 PM
Unknown Object (File)
Mon, Jun 29, 10:16 AM
Unknown Object (File)
Tue, Jun 16, 8:24 AM
Unknown Object (File)
May 18 2026, 5:44 PM
Subscribers

Details

Summary

We should free the allocated ASID if smmu_init_cd() fails.

Move the allocation of "domain" to simplify the first error path.

Reported by: Kevin Day <kevin@your.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable