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: Ye Bin <yebin10@huawei.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Ye Bin 2022-02-09 19:29:51 +08:00 • committed by Rafael J. Wysocki
commit 3f51aa9e29