From effe99e4b18eb5c345629d7bbaae1879a2594b20 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 15 Nov 2016 10:42:58 -0700 Subject: [PATCH] posixaio: fix bad type passed to memset We want the full array cleared, not just the first element. Signed-off-by: Jens Axboe --- engines/posixaio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/posixaio.c b/engines/posixaio.c index e5411b75..bddb1ec3 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c @@ -109,7 +109,7 @@ static int fio_posixaio_getevents(struct thread_data *td, unsigned int min, r = 0; restart: - memset(suspend_list, 0, sizeof(*suspend_list)); + memset(suspend_list, 0, sizeof(suspend_list)); suspend_entries = 0; io_u_qiter(&td->io_u_all, io_u, i) { int err; -- 2.25.1