diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index e1b4bfa938ddf8..2b4a946a6ff5cf 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -1166,7 +1166,7 @@ static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, int error; if (!hibernation_available()) - return 0; + return n; if (len && buf[len-1] == '\n') len--;