diff options
Diffstat (limited to 'fs/eventfd.c')
| -rw-r--r-- | fs/eventfd.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/fs/eventfd.c b/fs/eventfd.c index 8b47e4200e65..d26402ff06ea 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -339,7 +339,7 @@ struct file *eventfd_file_create(unsigned int count, int flags)  	ctx->flags = flags;  	file = anon_inode_getfile("[eventfd]", &eventfd_fops, ctx, -				  flags & EFD_SHARED_FCNTL_FLAGS); +				  O_RDWR | (flags & EFD_SHARED_FCNTL_FLAGS));  	if (IS_ERR(file))  		eventfd_free_ctx(ctx); | 
