From: Stanislaw Gruszka Date: Sat, 12 Feb 2011 20:06:51 +0000 (+0100) Subject: PM / Hibernate: Return error code when alloc_image_page() fails X-Git-Tag: v2.6.37.2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7401529300ced9e10bf396aa3bffd60970d002a7;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed