diff --git a/[refs] b/[refs] index faaf08c1da6c..d62a53f5c8f5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c579bc7e316e7e3f3b56df5e17f623325caa9783 +refs/heads/master: 93dc6107a76daed81c07f50215fa6ae77691634f diff --git a/trunk/fs/eventpoll.c b/trunk/fs/eventpoll.c index ea54cdef04dd..4d9d3a45e356 100644 --- a/trunk/fs/eventpoll.c +++ b/trunk/fs/eventpoll.c @@ -988,6 +988,10 @@ static int path_count[PATH_ARR_SIZE]; static int path_count_inc(int nests) { + /* Allow an arbitrary number of depth 1 paths */ + if (nests == 0) + return 0; + if (++path_count[nests] > path_limits[nests]) return -1; return 0;