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
@ -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…
x
Reference in New Issue
Block a user