Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ubi: fastmap: Don't produce the initial next anchor PEB when fastmap …
…is disabled Following process triggers a memleak caused by forgetting to release the initial next anchor PEB (CONFIG_MTD_UBI_FASTMAP is disabled): 1. attach -> __erase_worker -> produce the initial next anchor PEB 2. detach -> ubi_fastmap_close (Do nothing, it should have released the initial next anchor PEB) Don't produce the initial next anchor PEB in __erase_worker() when fastmap is disabled. Signed-off-by: Zhihao Cheng <[email protected]> Suggested-by: Sascha Hauer <[email protected]> Fixes: f9c34bb ("ubi: Fix producing anchor PEBs") Reported-by: [email protected] Signed-off-by: Richard Weinberger <[email protected]>
- Loading branch information