From 1e901d9ba63e1abb5aee957bd318a1058e870479 Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 27 May 2016 17:42:59 +0000 Subject: [PATCH] Initialize `t` with memset(.., 0, ..) This will help ensure that we're not using random garbage on the stack by accident with respect to the variable MFC after: 1 week Sponsored by: EMC / Isilon Storage Division --- tools/tools/ioat/ioatcontrol.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/tools/ioat/ioatcontrol.c b/tools/tools/ioat/ioatcontrol.c index 32decc77a2f7..32890f8d0b2d 100644 --- a/tools/tools/ioat/ioatcontrol.c +++ b/tools/tools/ioat/ioatcontrol.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -104,6 +105,8 @@ main(int argc, char **argv) bool fflag, rflag, Eflag, mflag; unsigned modeflags; + memset(&t, 0, sizeof(t)); + fflag = rflag = Eflag = mflag = false; modeflags = 0;