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
Unknown Object (File)
Tue, Jun 16, 8:24 AM
Unknown Object (File)
May 18 2026, 5:44 PM
Unknown Object (File)
May 15 2026, 1:16 AM
Unknown Object (File)
May 15 2026, 12:34 AM
Unknown Object (File)
May 13 2026, 5:22 AM
Unknown Object (File)
May 13 2026, 5:19 AM
Unknown Object (File)
May 13 2026, 5:16 AM
Unknown Object (File)
May 11 2026, 10:28 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