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)
Mon, Mar 9, 10:25 AM
Unknown Object (File)
Sat, Mar 7, 8:32 PM
Unknown Object (File)
Mon, Mar 2, 1:08 AM
Unknown Object (File)
Sun, Mar 1, 7:19 AM
Unknown Object (File)
Feb 8 2026, 7:37 AM
Unknown Object (File)
Feb 7 2026, 7:41 PM
Unknown Object (File)
Jan 31 2026, 5:46 AM
Unknown Object (File)
Jan 27 2026, 11:17 AM
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