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)
Fri, Sep 18, 9:11 PM
Unknown Object (File)
Fri, Sep 18, 8:40 PM
Unknown Object (File)
Fri, Sep 18, 6:30 PM
Unknown Object (File)
Fri, Sep 18, 12:55 AM
Unknown Object (File)
Wed, Sep 16, 11:17 AM
Unknown Object (File)
Wed, Sep 16, 6:47 AM
Unknown Object (File)
Mon, Sep 14, 8:14 AM
Unknown Object (File)
Sun, Sep 13, 10:00 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