From: Tokunori Ikegami Date: Thu, 4 May 2023 11:56:56 +0000 (+0900) Subject: nvme: Fix get-feature command sel parameter check to allow value 8 X-Git-Tag: v2.5~126 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a88cec6d32c0ca17f3bbf2e09245f9de9bfae3b6;p=users%2Fsagi%2Fnvme-cli.git nvme: Fix get-feature command sel parameter check to allow value 8 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 --- diff --git a/nvme.c b/nvme.c index 455ac835..e6bcd8ca 100644 --- 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;