Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PM: hibernate: Fix potential memory leak in hibernate_preallocate_mem…
…ory() and prepare_highmem_image() hibernate_preallocate_memory() and prepare_highmem_image() allocates memory chunk with memory_bm_create(). When the function gets some error after memory_bm_create(), relavent memory should be released with memory_bm_free(). Fix it by calling memory_bm_free() at the right time. Signed-off-by: Jianglei Nie <niejianglei2021@163.com>
- Loading branch information