freebsd_network: Allow destruction of dmamaps with BUFFER_PROHIBITED.
This commit is contained in:
parent
cb7e50e0a3
commit
4eac62eb9f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue