Fix use-after-free bug in MTD partitioning code.
Define callback wrapper function mtd_erase_callback() to handle partition offsets during the callback, rather than attempting to fix them up in the freed erase_info structure after the callback has already happened.
Showing
Please register or sign in to comment