Skip to content
Commit c9e4bf60 authored by Azat Khuzhin's avatar Azat Khuzhin Committed by Rafael J. Wysocki
Browse files

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: 1e8c813b ("PM: hibernate: don't use early_lookup_bdev in resume_store")
Signed-off-by: default avatarAzat Khuzhin <a3at.mail@gmail.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
[ rjw: Subject edits ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 06c2afb8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment