mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 14:54:24 +00:00
Do not panic when a dmamap is unloaded more then once, but just silently
ignore it. This is non-fatal on the other architectures, and some drivers seem to do this. Approved by: re
This commit is contained in:
parent
436114a653
commit
fe4c53992a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107470
|
@ -725,10 +725,8 @@ iommu_dvmamap_unload(bus_dma_tag_t pt, bus_dma_tag_t dt, struct iommu_state *is,
|
|||
* If the resource is already deallocated, just pass to the parent
|
||||
* tag.
|
||||
*/
|
||||
if (map->buflen == 0 || map->start == 0) {
|
||||
panic("iommu_dvmamap_unload: map = %p, len = %d, addr = %lx\n",
|
||||
map, (int)map->buflen, (unsigned long)map->start);
|
||||
}
|
||||
if (map->buflen == 0 || map->start == 0)
|
||||
return;
|
||||
|
||||
iommu_remove(is, map->start, map->buflen);
|
||||
map->buflen = 0;
|
||||
|
|
Loading…
Reference in a new issue