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, Apr 27, 10:53 PM
Unknown Object (File)
Mon, Apr 27, 7:30 PM
Unknown Object (File)
Mon, Apr 27, 7:10 PM
Unknown Object (File)
Sun, Apr 19, 8:58 PM
Unknown Object (File)
Sat, Apr 18, 6:00 AM
Unknown Object (File)
Tue, Apr 14, 12:14 PM
Unknown Object (File)
Mon, Apr 6, 9:33 PM
Unknown Object (File)
Mar 18 2026, 5:40 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