opnsense-src/sys/dev/iommu
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
..
busdma_iommu.c iommu_gas: Avoid double unmapping on error 2022-07-21 02:00:46 -05:00
busdma_iommu.h busdma_iommu: Fine-grained locking for the dmamap's map list 2022-06-25 00:59:23 -05:00
iommu.h iommu: Shrink the iommu map entry structure 2022-07-15 22:24:52 -05:00
iommu_gas.c iommu_gas: consolidate find_space helpers 2022-07-10 14:24:23 -05:00
iommu_gas.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
iommu_msi.h o Add iommu de-initialization method for MSI interface. 2020-10-24 20:09:27 +00:00
iommu_types.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00