From: Rafael J. Wysocki Date: Tue, 22 Nov 2011 22:08:10 +0000 (+0100) Subject: PM / Hibernate: Do not leak memory in error/test code paths X-Git-Tag: v3.2-rc4~8^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb58dd5d1ffad6c2d21c69698ba766dad4ae54e6;p=pandora-kernel.git PM / Hibernate: Do not leak memory in error/test code paths The hibernation core code forgets to release memory preallocated for hibernation if there's an error in its early stages or if test modes causing hibernation_snapshot() to return early are used. This causes the system to be hardly usable, because the amount of preallocated memory is usually huge. Fix this problem. Reported-by: Srivatsa S. Bhat Signed-off-by: Rafael J. Wysocki Acked-by: Srivatsa S. Bhat --- Reading git-diff-tree failed