]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Hibernate: Return error code when alloc_image_page() fails
authorStanislaw Gruszka <stf_xl@pop3.wp.pl>
Sat, 12 Feb 2011 20:06:51 +0000 (21:06 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:45 +0000 (12:46 -0400)
commit6f7850bb86a521f6da68794548a34dfa7ea7e1b9
tree0eb8a7c906b76aa5aecc99da6c89c411540ee1b3
parent229f532993bce8e5c5caec3f381bf80ae9ddef5a
PM / Hibernate: Return error code when alloc_image_page() fails

commit 2e725a065b0153f0c449318da1923a120477633d upstream.

Currently we return 0 in swsusp_alloc() when alloc_image_page() fails.
Fix that.  Also remove unneeded "error" variable since the only
useful value of error is -ENOMEM.

[rjw: Fixed up the changelog and changed subject.]

Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/power/snapshot.c