Skip to content

Fix error codes#203

Merged
hreinecke merged 2 commits intolinux-nvme:masterfrom
igaw:fix-error-codes
Jan 31, 2022
Merged

Fix error codes#203
hreinecke merged 2 commits intolinux-nvme:masterfrom
igaw:fix-error-codes

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Jan 28, 2022

When an error happens return -1 and set the errno.

In error the function is supposed to return -1 and set the errno
accordingly.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
The API says we return -1 in the error case and set the errno
accordingly. Update nvme_get_directive_receive_length
to fulfill the promise.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
@hreinecke hreinecke merged commit 3fba7be into linux-nvme:master Jan 31, 2022
@igaw igaw deleted the fix-error-codes branch February 1, 2022 08:38
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.

3 participants