diff options
author | tmm <tmm@FreeBSD.org> | 2002-12-01 22:59:29 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-12-01 22:59:29 +0000 |
commit | f6615a23f3d48e73b074c8254c47901093104a16 (patch) | |
tree | 98055950b6871a5c838b9bc9d621740dfa6cb76f /sys/sparc64 | |
parent | ba070f37c478d7d24cfacc6cab335f9aa225180d (diff) | |
download | FreeBSD-src-f6615a23f3d48e73b074c8254c47901093104a16.zip FreeBSD-src-f6615a23f3d48e73b074c8254c47901093104a16.tar.gz |
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
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/iommu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/sparc64/sparc64/iommu.c b/sys/sparc64/sparc64/iommu.c index 0391e99..ab3d566 100644 --- a/sys/sparc64/sparc64/iommu.c +++ b/sys/sparc64/sparc64/iommu.c @@ -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; |