diff options
Diffstat (limited to 'fs/eventpoll.c')
-rw-r--r-- | fs/eventpoll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index ea54cdef04d..4d9d3a45e35 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
@@ -988,6 +988,10 @@ static int path_count[PATH_ARR_SIZE]; | |||
988 | 988 | ||
989 | static int path_count_inc(int nests) | 989 | static int path_count_inc(int nests) |
990 | { | 990 | { |
991 | /* Allow an arbitrary number of depth 1 paths */ | ||
992 | if (nests == 0) | ||
993 | return 0; | ||
994 | |||
991 | if (++path_count[nests] > path_limits[nests]) | 995 | if (++path_count[nests] > path_limits[nests]) |
992 | return -1; | 996 | return -1; |
993 | return 0; | 997 | return 0; |