projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
anonfd: Allow making anon files read-only
[deliverable/linux.git]
/
fs
/
timerfd.c
diff --git
a/fs/timerfd.c
b/fs/timerfd.c
index b042bd7034b1fc74d6cd6399e24b3a2057689a2f..1bfc95ad5f716a70dda692a250aee1231b4f608e 100644
(file)
--- a/
fs/timerfd.c
+++ b/
fs/timerfd.c
@@
-200,7
+200,7
@@
SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags)
hrtimer_init(&ctx->tmr, clockid, HRTIMER_MODE_ABS);
ufd = anon_inode_getfd("[timerfd]", &timerfd_fops, ctx,
-
flags & TFD_SHARED_FCNTL_FLAGS
);
+
O_RDWR | (flags & TFD_SHARED_FCNTL_FLAGS)
);
if (ufd < 0)
kfree(ctx);
This page took
0.035131 seconds
and
5
git commands to generate.