PM / Hibernate: Fix ioctl SNAPSHOT_S2RAM
[pandora-kernel.git] / kernel / power / user.c
index 6522be9..7d02d33 100644 (file)
@@ -381,6 +381,7 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd,
                 * PM_HIBERNATION_PREPARE
                 */
                error = suspend_devices_and_enter(PM_SUSPEND_MEM);
+               data->ready = 0;
                break;
 
        case SNAPSHOT_PLATFORM_SUPPORT: