]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Fix get-feature command sel parameter check to allow value 8
authorTokunori Ikegami <ikegami.t@gmail.com>
Thu, 4 May 2023 11:56:56 +0000 (20:56 +0900)
committerDaniel Wagner <wagi@monom.org>
Thu, 4 May 2023 14:38:03 +0000 (16:38 +0200)
The parameter was changed to use value 8 also by the change 30b89e5ef.
  Note: The value is used only for the command functionality to limit feature
        output changed from default but not passed to the driver.

Fixes: 63dcb68c6 ("nvme: Fix parameter limit range")
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 455ac83543028ea4f3559eb6da049696be229648..e6bcd8ca9c5385411a0a23aa69819c516eec5336 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -4800,7 +4800,7 @@ static int get_feature(int argc, char **argv, struct command *cmd,
                }
        }
 
-       if (cfg.sel > 7) {
+       if (cfg.sel > 8) {
                nvme_show_error("invalid 'select' param:%d", cfg.sel);
                err = -EINVAL;
                goto close_dev;