diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index dad8ea4e00a0..39fd336cfdb9 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -751,7 +751,7 @@ static ssize_t oom_adjust_write(struct file *file, const char __user *buf, | |||
751 | if (copy_from_user(buffer, buf, count)) | 751 | if (copy_from_user(buffer, buf, count)) |
752 | return -EFAULT; | 752 | return -EFAULT; |
753 | oom_adjust = simple_strtol(buffer, &end, 0); | 753 | oom_adjust = simple_strtol(buffer, &end, 0); |
754 | if (oom_adjust < -16 || oom_adjust > 15) | 754 | if ((oom_adjust < -16 || oom_adjust > 15) && oom_adjust != OOM_DISABLE) |
755 | return -EINVAL; | 755 | return -EINVAL; |
756 | if (*end == '\n') | 756 | if (*end == '\n') |
757 | end++; | 757 | end++; |