svn commit: r327529 - head/sys/dev/ath
Ed Maste
emaste at FreeBSD.org
Wed Jan 3 19:28:14 UTC 2018
Author: emaste
Date: Wed Jan 3 19:28:13 2018
New Revision: 327529
URL: https://svnweb.freebsd.org/changeset/base/327529
Log:
ath: fix possible memory disclosure in ioctl handler
Submitted by: Domagoj Stolfa <domagoj.stolfa at gmail.com>
MFC after: 1 week
Modified:
head/sys/dev/ath/if_ath_ioctl.c
Modified: head/sys/dev/ath/if_ath_ioctl.c
==============================================================================
--- head/sys/dev/ath/if_ath_ioctl.c Wed Jan 3 19:24:57 2018 (r327528)
+++ head/sys/dev/ath/if_ath_ioctl.c Wed Jan 3 19:28:13 2018 (r327529)
@@ -197,7 +197,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;
More information about the svn-src-all
mailing list