Alan Cox dfabdacb27 iommu_gas: Avoid double unmapping on error
In the extremely unlikely case that the iommu_gas_map_region() call in
bus_dma_iommu_load_ident() failed, we would attempt to unmap the failed
entry twice, first in iommu_gas_map_region(), and a second time in the
caller.  Once is enough, and twice is problematic because it leads to a
second RB_REMOVE call on the same tree node.  Like it or not, RB_TREE
does not handle that possibility.

Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D35869
2022-07-21 02:00:46 -05:00
..
2022-07-08 18:52:14 -03:00
2022-05-20 17:11:27 +01:00
2022-07-18 17:23:25 -07:00
2022-07-18 22:06:15 +00:00
2022-05-15 11:51:56 -07:00
2022-06-07 12:29:53 +02:00