Skip to content
Commit 3f51aa9e authored by Ye Bin's avatar Ye Bin Committed by Rafael J. Wysocki
Browse files

PM: hibernate: fix load_image_and_restore() error path



As 'swsusp_check' open 'hib_resume_bdev', if call 'create_basic_memory_bitmaps'
failed, we need to close 'hib_resume_bdev' in 'load_image_and_restore' function.

Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
[ rjw: Subject ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 754e0b0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment