Author: emaste
Date: Fri Oct 27 20:21:09 2017
New Revision: 325047
URL: https://svnweb.freebsd.org/changeset/base/325047

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

Modified:
  head/contrib/dma/dma.c

Modified: head/contrib/dma/dma.c
==============================================================================
--- head/contrib/dma/dma.c      Fri Oct 27 19:27:05 2017        (r325046)
+++ head/contrib/dma/dma.c      Fri Oct 27 20:21:09 2017        (r325047)
@@ -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:
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to