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.sto...@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; _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"