From: Rafael J. Wysocki Date: Tue, 10 May 2011 19:10:13 +0000 (+0200) Subject: PM / Hibernate: Fix ioctl SNAPSHOT_S2RAM X-Git-Tag: v2.6.39~50^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36cb7035ea0c11ef2c7fa2bbe0cd181b23569b29;p=pandora-kernel.git PM / Hibernate: Fix ioctl SNAPSHOT_S2RAM The SNAPSHOT_S2RAM ioctl used for implementing the feature allowing one to suspend to RAM after creating a hibernation image is currently broken, because it doesn't clear the "ready" flag in the struct snapshot_data object handled by it. As a result, the SNAPSHOT_UNFREEZE doesn't work correctly after SNAPSHOT_S2RAM has returned and the user space hibernate task cannot thaw the other processes as appropriate. Make SNAPSHOT_S2RAM clear data->ready to fix this problem. Tested-by: Alexandre Felipe Muller de Souza Signed-off-by: Rafael J. Wysocki Cc: stable@kernel.org --- Reading git-diff-tree failed