diff options
Diffstat (limited to 'fs/timerfd.c')
-rw-r--r-- | fs/timerfd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/timerfd.c b/fs/timerfd.c index b042bd7034b1..98158de91d24 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/fs.h> | 14 | #include <linux/fs.h> |
15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/slab.h> | ||
17 | #include <linux/list.h> | 18 | #include <linux/list.h> |
18 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
19 | #include <linux/time.h> | 20 | #include <linux/time.h> |
@@ -200,7 +201,7 @@ SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags) | |||
200 | hrtimer_init(&ctx->tmr, clockid, HRTIMER_MODE_ABS); | 201 | hrtimer_init(&ctx->tmr, clockid, HRTIMER_MODE_ABS); |
201 | 202 | ||
202 | ufd = anon_inode_getfd("[timerfd]", &timerfd_fops, ctx, | 203 | ufd = anon_inode_getfd("[timerfd]", &timerfd_fops, ctx, |
203 | flags & TFD_SHARED_FCNTL_FLAGS); | 204 | O_RDWR | (flags & TFD_SHARED_FCNTL_FLAGS)); |
204 | if (ufd < 0) | 205 | if (ufd < 0) |
205 | kfree(ctx); | 206 | kfree(ctx); |
206 | 207 | ||