Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2018 11:48:14 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331350 - stable/11/contrib/dma
Message-ID:  <201803221148.w2MBmESf032134@repo.freebsd.org>

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



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