From a88cec6d32c0ca17f3bbf2e09245f9de9bfae3b6 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Thu, 4 May 2023 20:56:56 +0900 Subject: [PATCH] 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 --- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1