From d95b26fae0bdab7d306f0dff1d9328a697e041f3 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 22 Apr 2021 12:34:16 +0200 Subject: [PATCH] cov: check setup_devices return code --- tools/pvck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pvck.c b/tools/pvck.c index 6bc1c091f..74663ec43 100644 --- a/tools/pvck.c +++ b/tools/pvck.c @@ -3187,8 +3187,8 @@ int pvck(struct cmd_context *cmd, int argc, char **argv) if (argc == 1) setup_device(cmd, argv[0]); - else - setup_devices(cmd); + else if (!setup_devices(cmd)) + return ECMD_FAILED; for (i = 0; i < argc; i++) { pv_name = argv[i]; -- 2.43.5