From: Srivatsa S. Bhat Date: Wed, 1 Feb 2012 21:16:36 +0000 (+0100) Subject: PM / Hibernate: Thaw kernel threads in SNAPSHOT_CREATE_IMAGE ioctl path X-Git-Tag: v3.2.6~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695cb013a3332b6c773c8a75be97aa6f91bc227f;p=pandora-kernel.git PM / Hibernate: Thaw kernel threads in SNAPSHOT_CREATE_IMAGE ioctl path commit fe9161db2e6053da21e4649d77bbefaf3030b11d upstream. In the SNAPSHOT_CREATE_IMAGE ioctl, if the call to hibernation_snapshot() fails, the frozen tasks are not thawed. And in the case of success, if we happen to exit due to a successful freezer test, all tasks (including those of userspace) are thawed, whereas actually we should have thawed only the kernel threads at that point. Fix both these issues. Signed-off-by: Srivatsa S. Bhat Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed