Skip to content

reclaim: fix uninitialized status when LX_DIRECT_READ is used - #84

Open
miracoli wants to merge 1 commit into
eclipse-threadx:devfrom
miracoli:fix/lx-direct-read-uninitialized-status
Open

reclaim: fix uninitialized status when LX_DIRECT_READ is used#84
miracoli wants to merge 1 commit into
eclipse-threadx:devfrom
miracoli:fix/lx-direct-read-uninitialized-status

Conversation

@miracoli

Copy link
Copy Markdown

This PR re-submits the fix originally proposed in #21.

The original PR has been open for some time, and the original author appears to have run into issues with the Eclipse Contributor Agreement (ECA), preventing the contribution from moving forward.

The change itself is unchanged: when LX_DIRECT_READ is enabled, status may be uninitialized on this error path. Returning LX_SYSTEM_ALLOCATION_FAILED directly ensures that the reported error matches the preceding _lx_nor_flash_system_error() call and avoids returning an undefined value.

Original PR: #21

Thanks to @jiri-novotny for identifying the issue and proposing the original fix.

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