Author: emaste
Date: Thu Mar 22 11:48:14 2018
New Revision: 331350
URL: https://svnweb.freebsd.org/changeset/base/331350

Log:
  MFC r325047: dma: fix use-after-free
  
  Sponsored by: The FreeBSD Foundation

Modified:
  stable/11/contrib/dma/dma.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/dma/dma.c
==============================================================================
--- stable/11/contrib/dma/dma.c Thu Mar 22 10:57:51 2018        (r331349)
+++ stable/11/contrib/dma/dma.c Thu Mar 22 11:48:14 2018        (r331350)
@@ -331,8 +331,8 @@ retry:
 
        switch (error) {
        case 0:
-               delqueue(it);
                syslog(LOG_INFO, "<%s> delivery successful", it->addr);
+               delqueue(it);
                exit(EX_OK);
 
        case 1:
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to