From fe4c53992aad64e33fd0fb0d8eb6e15d9b8ceb71 Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Sun, 1 Dec 2002 22:59:29 +0000 Subject: 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 --- sys/sparc64/sparc64/iommu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/sparc64/sparc64/iommu.c b/sys/sparc64/sparc64/iommu.c index 0391e997abd1b..ab3d566b0bdc6 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; -- cgit v1.3