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

Return status not checked in function _lx_nor_flash_block_reclaim #19

Open
oz2mia opened this issue May 11, 2023 · 0 comments
Open

Return status not checked in function _lx_nor_flash_block_reclaim #19

oz2mia opened this issue May 11, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@oz2mia
Copy link

oz2mia commented May 11, 2023

In function UINT _lx_nor_flash_block_reclaim(LX_NOR_FLASH *nor_flash)

A call is made to _lx_nor_flash_next_block_to_erase_find where the return status is not checked,
this result in that erase_block, erase_count, mapped_sectors, obsolete_sectors variables are unassigned,
and later used.

I would suggest a status handling like the one done in the same function when _lx_nor_flash_driver_write is called.

@oz2mia oz2mia added the bug Something isn't working label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants