Page MenuHomeFreeBSD

bug fix: iommu_gas_fini_domain()
ClosedPublic

Authored by br on Nov 16 2020, 11:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 12, 9:51 AM
Unknown Object (File)
Tue, Aug 11, 6:24 AM
Unknown Object (File)
Sat, Aug 8, 9:23 PM
Unknown Object (File)
Fri, Aug 7, 3:03 AM
Unknown Object (File)
Jul 12 2026, 10:10 PM
Unknown Object (File)
Jul 8 2026, 12:59 AM
Unknown Object (File)
Jun 2 2026, 5:05 AM
Unknown Object (File)
May 21 2026, 7:26 PM
Subscribers

Details

Summary

iommu_gas_init_domain() sets these two flags, so check them both in iommu_gas_fini_domain()

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

br requested review of this revision.Nov 16 2020, 11:37 AM
br created this revision.
sys/dev/iommu/iommu_gas.c
262 ↗(On Diff #79595)

Indent for continuation line should be +4 spaces, not tab. () are not needed.

Fix indentation

sys/dev/iommu/iommu_gas.c
262 ↗(On Diff #79595)

() are needed it seems:

sys/dev/iommu/iommu_gas.c:262:28: error: | has lower precedence than ==; == will be evaluated first [-Werror,-Wparentheses]

IOMMU_MAP_ENTRY_PLACE | IOMMU_MAP_ENTRY_UNMAPPED,
This revision is now accepted and ready to land.Nov 16 2020, 12:42 PM