mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Destroy RX DMA tag on detach in mvneta driver
This patch fixes deinitialization sequence of the mvneta driver by adding missing bus_dma_tag_destroy call. Submitted by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf MFC after: 1 week Sponsored by: Stormshield
This commit is contained in:
parent
8f2b73dc86
commit
3599e81c97
1 changed files with 2 additions and 0 deletions
|
|
@ -874,6 +874,8 @@ mvneta_detach(device_t dev)
|
|||
bus_dma_tag_destroy(sc->rx_dtag);
|
||||
if (sc->txmbuf_dtag != NULL)
|
||||
bus_dma_tag_destroy(sc->txmbuf_dtag);
|
||||
if (sc->rxbuf_dtag != NULL)
|
||||
bus_dma_tag_destroy(sc->rxbuf_dtag);
|
||||
|
||||
bus_release_resources(dev, res_spec, sc->res);
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue