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