diff --git a/fs/proc/base.c b/fs/proc/base.c index 0c3a2eb617263068e086e76b1af0032569ff9715..2d1af92653bba02393dacaa3757060b6db0ea39b 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1264,7 +1264,7 @@ static const struct file_operations proc_oom_score_adj_operations = { static inline int reliable_check(struct task_struct *task, struct pid *pid) { if (!mem_reliable_is_enabled()) - return -EINVAL; + return -EACCES; if (is_global_init(task)) return -EINVAL;