From: Rafael J. Wysocki Date: Wed, 7 Jul 2010 21:43:35 +0000 (+0200) Subject: PM / Hibernate: Fix snapshot error code path X-Git-Tag: v2.6.36-rc1~577^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d074ee023fa3a4681b64223c5e636102c39628c4;p=pandora-kernel.git PM / Hibernate: Fix snapshot error code path There is an inconsistency between hibernation_platform_enter() and hibernation_snapshot(), because the latter calls hibernation_ops->end() after failing hibernation_ops->begin(), while the former doesn't do that. Make hibernation_snapshot() behave in the same way as hibernation_platform_enter() in that respect. Signed-off-by: Rafael J. Wysocki Acked-by: Len Brown --- Reading git-diff-tree failed