Skip to content

Commit b55918a

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 <[email protected]>
1 parent c22d222 commit b55918a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)