diff options
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 54f20fdee93c..19a2c7139960 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -1869,7 +1869,7 @@ static int prctl_set_mm(int opt, unsigned long addr, | |||
1869 | if (opt == PR_SET_MM_EXE_FILE) | 1869 | if (opt == PR_SET_MM_EXE_FILE) |
1870 | return prctl_set_mm_exe_file(mm, (unsigned int)addr); | 1870 | return prctl_set_mm_exe_file(mm, (unsigned int)addr); |
1871 | 1871 | ||
1872 | if (addr >= TASK_SIZE) | 1872 | if (addr >= TASK_SIZE || addr < mmap_min_addr) |
1873 | return -EINVAL; | 1873 | return -EINVAL; |
1874 | 1874 | ||
1875 | error = -EINVAL; | 1875 | error = -EINVAL; |