Skip to content

nvme: use correct parser type for nvmsetid and endgid option#2741

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:fix-create-ns
Mar 11, 2025
Merged

nvme: use correct parser type for nvmsetid and endgid option#2741
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:fix-create-ns

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Mar 11, 2025

nvmsetid and endgid are both shorts, thus the OPT_SHRT parser type needs to be used. Otherwise the result is written to the wrong memory location.

Fixes: 972effd ("nvme.c: create-ns arguments are added")
Fixes: #2737

nvmsetid and endgid are both shorts, thus the OPT_SHRT parser
type needs to be used. Otherwise the result is written to the wrong
memory location.

Fixes: 972effd ("nvme.c: create-ns arguments are added")
Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw merged commit 0b53ec8 into linux-nvme:master Mar 11, 2025
14 of 17 checks passed
@igaw igaw deleted the fix-create-ns branch March 11, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create namespace command not parser endurance group id correctly

1 participant