From b081d0e4064f45257e89fcc8c4cb5d0113978c2d Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 3 Jan 2018 19:28:13 +0000 Subject: [PATCH] ath: fix possible memory disclosure in ioctl handler Submitted by: Domagoj Stolfa MFC after: 1 week --- sys/dev/ath/if_ath_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ath/if_ath_ioctl.c b/sys/dev/ath/if_ath_ioctl.c index a7ba0e42df3..37122c16fc0 100644 --- a/sys/dev/ath/if_ath_ioctl.c +++ b/sys/dev/ath/if_ath_ioctl.c @@ -197,7 +197,7 @@ ath_ioctl_diag(struct ath_softc *sc, struct ath_diag *ad) * 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;