Skip to content

Commit 615d771

Browse files
committed
fix: zns: add error check zns report zones
This commit adds the additional check for an error. Signed-off-by: Markus Kurz <m.kurz92@gmail.com>
1 parent c22d222 commit 615d771

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/zns/zns.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,9 @@ static int report_zones(int argc, char **argv, struct command *acmd, struct plug
915915
if (err > 0) {
916916
nvme_show_status(err);
917917
break;
918+
} else if (err < 0) {
919+
perror("zns report-zones");
920+
break;
918921
}
919922
// QUESTION: should we also check for < 0 here?
920923

0 commit comments

Comments
 (0)