PM: Fix error code paths executed after failing syscore_suspend()
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 18 Apr 2011 21:58:59 +0000 (23:58 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 18 Apr 2011 21:58:59 +0000 (23:58 +0200)
commit2ca6f62f595c01f689b269db6736de5544da7667
treebfc4b2225ea1df64542c92dd8336420515072faa
parenta1b49cb7e2a7961ec3aa8b64860bf480d4ec9077
PM: Fix error code paths executed after failing syscore_suspend()

If syscore_suspend() fails in suspend_enter(), create_image() or
resume_target_kernel(), it is necessary to call sysdev_resume(),
because sysdev_suspend() has been called already and succeeded
and we are going to abort the transition.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/power/hibernate.c
kernel/power/suspend.c