diff options
Diffstat (limited to 'fs/notify/fanotify/fanotify_user.c')
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index b13992a41bd9..c991616acca9 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -78,7 +78,7 @@ static int create_fd(struct fsnotify_group *group, | |||
78 | 78 | ||
79 | pr_debug("%s: group=%p event=%p\n", __func__, group, event); | 79 | pr_debug("%s: group=%p event=%p\n", __func__, group, event); |
80 | 80 | ||
81 | client_fd = get_unused_fd(); | 81 | client_fd = get_unused_fd_flags(group->fanotify_data.f_flags); |
82 | if (client_fd < 0) | 82 | if (client_fd < 0) |
83 | return client_fd; | 83 | return client_fd; |
84 | 84 | ||