Page MenuHomeFreeBSD

arm64/iommu: Fix a resource leak in smmu_domain_alloc()
Needs ReviewPublic

Authored by markj on Mon, Jan 12, 9:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 13, 3:59 PM
Unknown Object (File)
Tue, Jan 13, 12:21 PM
Subscribers

Details

Reviewers
br
andrew
manu
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 69838
Build 66721: arc lint + arc unit