Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2017 20:21:09 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325047 - head/contrib/dma
Message-ID:  <201710272021.v9RKL9nw046658@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710272021.v9RKL9nw046658>