From 2a20251ad620d6604e55b28c824e77b1242ba6b1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 10 Mar 2026 07:12:55 +0000 Subject: util/nvmutil: reset errno before run_cmd in case any stale errors are present. at this point, we know that the code is likely safe and that nothing happened, because we quite obsessively call err() before that point. Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 71a4584c..e281f4ef 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -505,6 +505,7 @@ main(int argc, char *argv[]) read_gbe_file(); read_checksums(); + errno = 0; run_cmd(cmd_index); if (errno) -- cgit v1.2.1