PM / hibernate: Check the success of generating md5 digest before hibernation
authorChen Yu <yu.c.chen@intel.com>
Fri, 21 Sep 2018 06:26:38 +0000 (14:26 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Oct 2018 09:56:33 +0000 (11:56 +0200)
commit749fa17093ff67b31dea864531a3698b6a95c26c
tree11775b001c536b0b174e0dfe1836b51d26646f3b
parentcc55f7537db6af371e9c1c6a71161ee40f918824
PM / hibernate: Check the success of generating md5 digest before hibernation

Currently if get_e820_md5() fails, then it will hibernate nevertheless.
Actually the error code should be propagated to upper caller so that
the hibernation could be aware of the result and terminates the process
if md5 digest fails.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/power/hibernate_64.c