Skip to content

cas_bd: Fix error code handling - #1802

Merged
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:bd-error-code-handling
Sep 7, 2026
Merged

robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:bd-error-code-handling

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

Return the error code by value instead of using ERR_PTR(). Some of the ops may return KCAS_* error codes which are in a range beyond of what ERR_PTR() can correctly handle, leading to an error code like that being interpreded as no error by IS_ERR().

Return the error code by value instead of using ERR_PTR(). Some of the
ops may return KCAS_* error codes which are in a range beyond of what
ERR_PTR() can correctly handle, leading to an error code like that being
interpreded as no error by IS_ERR().

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga merged commit 307239e into Open-CAS:master Sep 7, 2026
5 checks passed
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.

1 participant