Page MenuHomeFreeBSD

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

Authored by markj on Mon, Jan 12, 9:16 PM.
Tags
None
Referenced Files
F144316395: D54676.id169779.diff
Sat, Feb 7, 7:41 PM
Unknown Object (File)
Sat, Jan 31, 5:46 AM
Unknown Object (File)
Tue, Jan 27, 11:17 AM
Unknown Object (File)
Sun, Jan 25, 11:20 AM
Unknown Object (File)
Sun, Jan 25, 8:20 AM
Unknown Object (File)
Sun, Jan 25, 6:40 AM
Unknown Object (File)
Sun, Jan 18, 8:31 PM
Unknown Object (File)
Sun, Jan 18, 11:26 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