From: Daniel Wagner Date: Mon, 10 Jan 2022 15:28:31 +0000 (+0100) Subject: nvme: Initialize variable in passthru X-Git-Tag: v2.0-rc0~3^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=74c8f7918987e8f24a0c2d17537ff7f273d79584;p=users%2Fsagi%2Fnvme-cli.git nvme: Initialize variable in passthru Always initialize huge so that we avoid reading the unitialized variable in nvme_free(). Fixes: fb15eee3d72b ("support a meatadata file redirection for passthru"). Signed-off-by: Daniel Wagner --- diff --git a/nvme.c b/nvme.c index 9500969b..f91d5168 100644 --- a/nvme.c +++ b/nvme.c @@ -6428,7 +6428,7 @@ static int passthru(int argc, char **argv, bool admin, void *data = NULL, *mdata = NULL; int err = 0, dfd, mfd, fd; __u32 result; - bool huge; + bool huge = false; const char *cmd_name = NULL; struct timeval start_time, end_time;