aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inotify_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/inotify_user.c')
-rw-r--r--fs/inotify_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/inotify_user.c b/fs/inotify_user.c
index dc7e1f619748..fe79c25d95dc 100644
--- a/fs/inotify_user.c
+++ b/fs/inotify_user.c
@@ -574,6 +574,10 @@ asmlinkage long sys_inotify_init1(int flags)
574 struct file *filp; 574 struct file *filp;
575 int fd, ret; 575 int fd, ret;
576 576
577 /* Check the IN_* constants for consistency. */
578 BUILD_BUG_ON(IN_CLOEXEC != O_CLOEXEC);
579 BUILD_BUG_ON(IN_NONBLOCK != O_NONBLOCK);
580
577 if (flags & ~(IN_CLOEXEC | IN_NONBLOCK)) 581 if (flags & ~(IN_CLOEXEC | IN_NONBLOCK))
578 return -EINVAL; 582 return -EINVAL;
579 583