From: Rafael J. Wysocki Date: Wed, 7 Jul 2010 21:43:45 +0000 (+0200) Subject: PM / Suspend: Fix ordering of calls in suspend error paths X-Git-Tag: v2.6.36-rc1~577^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce4410116c5debfb0e049f5db4b5cd6211e05b80;p=pandora-kernel.git PM / Suspend: Fix ordering of calls in suspend error paths The ACPI suspend code calls suspend_nvs_free() at a wrong place, which may lead to a memory leak if there's an error executing acpi_pm_prepare(), because acpi_pm_finish() will not be called in that case. However, the root cause of this problem is the apparently confusing ordering of calls in suspend error paths that needs to be fixed. In addition to that, fix a typo in a label name in suspend.c. Signed-off-by: Rafael J. Wysocki Acked-by: Len Brown --- Reading git-diff-tree failed