summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2023-07-11 14:48:12 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-07-11 20:58:08 +0300
commitc9e4bf607d8c431452ef362c00e62ce999bbae93 (patch)
treef2fe408df70ef56eeb4f81ec4e624adf77d0cea2 /scripts/gdb/linux/utils.py
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
downloadlinux-c9e4bf607d8c431452ef362c00e62ce999bbae93.tar.xz
PM: hibernate: Fix writing maj:min to /sys/power/resume
resume_store() first calls lookup_bdev() and after tries to handle maj:min, but it does not reset the error before, hence if you will write maj:min you will get ENOENT: # echo 259:2 >| /sys/power/resume bash: echo: write error: No such file or directory This also should fix hiberation via systemd, since it uses this way. Fixes: 1e8c813b083c4 ("PM: hibernate: don't use early_lookup_bdev in resume_store") Signed-off-by: Azat Khuzhin <a3at.mail@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> [ rjw: Subject edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions