]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
PM: hibernate: Propagate the return value of hibernation_restore()
authorDexuan Cui <decui@microsoft.com>
Tue, 31 Mar 2020 15:55:25 +0000 (08:55 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Apr 2020 09:36:11 +0000 (11:36 +0200)
commit3704a6a445790e6621c19be25d85dfadbeb16a69
tree0ebe7037a9d15ea687d63ceada43850e86076c7d
parent2ce94bc4e056d3e48291aac87a95ebd2a86348ba
PM: hibernate: Propagate the return value of hibernation_restore()

If hibernation_restore() fails, the 'error' should not be zero.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c