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:
Thomas Moestl 2002-12-01 22:59:29 +00:00
parent 436114a653
commit fe4c53992a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107470

View file

@ -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;