Skip to content

Commit 3c26f3d

Browse files
acroreiserPixelBoot
authored andcommitted
HACK: Supress lmkd errors when writing /proc/$$/oom_score_adj
Error: E/[lowmemorykiller] Error writing /proc/15760/oom_score_adj; errno=22
1 parent 27fc57f commit 3c26f3d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

fs/proc/base.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,10 +1111,6 @@ static ssize_t oom_adj_write(struct file *file, const char __user *buf,
11111111
}
11121112

11131113
task_lock(task);
1114-
if (!task->mm) {
1115-
err = -EINVAL;
1116-
goto err_task_lock;
1117-
}
11181114

11191115
if (!lock_task_sighand(task, &flags)) {
11201116
err = -ESRCH;

0 commit comments

Comments
 (0)