Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2019 00:36:27 +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-12@freebsd.org
Subject:   svn commit: r351678 - stable/12/sys/dev/xdma
Message-ID:  <201909020036.x820aRPS099786@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Sep  2 00:36:26 2019
New Revision: 351678
URL: https://svnweb.freebsd.org/changeset/base/351678

Log:
  MFC r351621: xdma: avoid NULL deref in error case
  
  Reported by:	Dr Silvio Cesare of InfoSect
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/sys/dev/xdma/xdma_sg.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/xdma/xdma_sg.c
==============================================================================
--- stable/12/sys/dev/xdma/xdma_sg.c	Mon Sep  2 00:31:05 2019	(r351677)
+++ stable/12/sys/dev/xdma/xdma_sg.c	Mon Sep  2 00:36:26 2019	(r351678)
@@ -183,8 +183,7 @@ xchan_bufs_alloc(xdma_channel_t *xchan)
 	xdma = xchan->xdma;
 
 	if (xdma == NULL) {
-		device_printf(xdma->dev,
-		    "%s: Channel was not allocated properly.\n", __func__);
+		printf("%s: Channel was not allocated properly.\n", __func__);
 		return (-1);
 	}
 



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