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
ba070f37c4
commit
f6615a23f3
@ -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…
x
Reference in New Issue
Block a user