summaryrefslogtreecommitdiff
path: root/drivers/ide/arm/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2026-03-09 18:39:42 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-03-20 19:55:42 +0100
commit2b27ea5b644d7da9bc84f4539e53d1b31c601566 (patch)
tree1edbf0afd8715e37ff2c7914661453abbcbb4816 /drivers/ide/arm/git@git.tavy.me:linux.git
parent9b0f1cd58fe9d2c95eae97f089040f1a5b02c097 (diff)
PM: hibernate: return -ENODATA if the snapshot image is not loaded
snapshot_image_loaded() is used in both the in-kernel and the userspace restore path to ensure that the snapshot image has been completely loaded. However the latter path returns -EPERM in such situations, which is meant for cases where the operation is neither write-only nor ready. This patch updates the check so the returned error code is -ENODATA in both cases. Suggested-by: Brian Geffon <bgeffon@google.com> Signed-off-by: Alberto Garcia <berto@igalia.com> Acked-by: Brian Geffon <bgeffon@google.com> Link: https://patch.msgid.link/8cfda38659c623f5392f3458cb32504ffd556a74.1773075892.git.berto@igalia.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/ide/arm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions