Page MenuHomeFreeBSD

bug fix: iommu_gas_fini_domain()
ClosedPublic

Authored by br on Nov 16 2020, 11:37 AM.
Tags
None
Referenced Files
F136995358: D27235.id79595.diff
Thu, Nov 20, 10:53 PM
F136992335: D27235.id79599.diff
Thu, Nov 20, 10:43 PM
F136990205: D27235.id79608.diff
Thu, Nov 20, 10:36 PM
F136989461: D27235.id.diff
Thu, Nov 20, 10:32 PM
F136988102: D27235.diff
Thu, Nov 20, 10:27 PM
Unknown Object (File)
Fri, Nov 14, 6:51 PM
Unknown Object (File)
Sat, Nov 8, 12:40 AM
Unknown Object (File)
Oct 20 2025, 4:16 AM
Subscribers

Details

Summary

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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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

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

Fix indentation

sys/dev/iommu/iommu_gas.c
262

() 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