Author: mw
Date: Sat Feb  8 13:25:39 2020
New Revision: 357675
URL: https://svnweb.freebsd.org/changeset/base/357675

Log:
  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 <min...@semihalf.com>
  Obtained from: Semihalf
  MFC after: 1 week
  Sponsored by: Stormshield

Modified:
  head/sys/dev/neta/if_mvneta.c

Modified: head/sys/dev/neta/if_mvneta.c
==============================================================================
--- head/sys/dev/neta/if_mvneta.c       Fri Feb  7 22:45:09 2020        
(r357674)
+++ head/sys/dev/neta/if_mvneta.c       Sat Feb  8 13:25:39 2020        
(r357675)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to