levelx icon indicating copy to clipboard operation
levelx copied to clipboard

Return status not checked in function _lx_nor_flash_block_reclaim

Open oz2mia opened this issue 2 years ago • 0 comments

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 avatar May 11 '23 10:05 oz2mia