git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reiserfs: Add default allocation routines for quota structures
[safe/jmp/linux-2.6]
/
fs
/
signalfd.c
diff --git
a/fs/signalfd.c
b/fs/signalfd.c
index
5441a4b
..
9c39bc7
100644
(file)
--- a/
fs/signalfd.c
+++ b/
fs/signalfd.c
@@
-211,6
+211,10
@@
asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask,
sigset_t sigmask;
struct signalfd_ctx *ctx;
+ /* Check the SFD_* constants for consistency. */
+ BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC);
+ BUILD_BUG_ON(SFD_NONBLOCK != O_NONBLOCK);
+
if (flags & ~(SFD_CLOEXEC | SFD_NONBLOCK))
return -EINVAL;