freebsd_network: Allow destruction of dmamaps with BUFFER_PROHIBITED.

This commit is contained in:
Augustin Cavalier 2022-06-03 13:03:42 -04:00
parent cb7e50e0a3
commit 4eac62eb9f
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map)
{
if (map == NULL)
return 0;
if (map->buffer_type != bus_dmamap::BUFFER_NONE)
if (map->buffer_type > bus_dmamap::BUFFER_PROHIBITED)
return EBUSY;
atomic_add(&map->dmat->map_count, -1);