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:
Marcin Wojtas 2020-02-08 13:25:39 +00:00
parent 8f2b73dc86
commit 3599e81c97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357675

View file

@ -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);