Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2018 12:55:10 +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-10@freebsd.org
Subject:   svn commit: r332321 - stable/10/sys/dev/ath
Message-ID:  <201804091255.w39CtA8L014109@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Apr  9 12:55:09 2018
New Revision: 332321
URL: https://svnweb.freebsd.org/changeset/base/332321

Log:
  MFC r327529: ath: fix possible memory disclosure in ioctl handler
  
  Submitted by:	Domagoj Stolfa <domagoj.stolfa@gmail.com>

Modified:
  stable/10/sys/dev/ath/if_ath.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/ath/if_ath.c
==============================================================================
--- stable/10/sys/dev/ath/if_ath.c	Mon Apr  9 12:53:15 2018	(r332320)
+++ stable/10/sys/dev/ath/if_ath.c	Mon Apr  9 12:55:09 2018	(r332321)
@@ -5910,7 +5910,7 @@ ath_ioctl_diag(struct ath_softc *sc, struct ath_diag *
 		 * pointer for us to use below in reclaiming the buffer;
 		 * may want to be more defensive.
 		 */
-		outdata = malloc(outsize, M_TEMP, M_NOWAIT);
+		outdata = malloc(outsize, M_TEMP, M_NOWAIT | M_ZERO);
 		if (outdata == NULL) {
 			error = ENOMEM;
 			goto bad;



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