Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

igaw
Copy link
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