diff options
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r-- | fs/proc/root.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index 1988440b2049..b90da888b81a 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -58,7 +58,8 @@ int proc_parse_options(char *options, struct pid_namespace *pid) | |||
58 | case Opt_hidepid: | 58 | case Opt_hidepid: |
59 | if (match_int(&args[0], &option)) | 59 | if (match_int(&args[0], &option)) |
60 | return 0; | 60 | return 0; |
61 | if (option < 0 || option > 2) { | 61 | if (option < HIDEPID_OFF || |
62 | option > HIDEPID_INVISIBLE) { | ||
62 | pr_err("proc: hidepid value must be between 0 and 2.\n"); | 63 | pr_err("proc: hidepid value must be between 0 and 2.\n"); |
63 | return 0; | 64 | return 0; |
64 | } | 65 | } |