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.38-rc6~24^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e725a065b0153f0c449318da1923a120477633d;p=pandora-kernel.git PM / Hibernate: Return error code when alloc_image_page() fails 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 Cc: stable@kernel.org Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed