mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357675
|
@ -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