diff --git a/[refs] b/[refs] index e356ddcf349f..33e10ab5323a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9679e4dd628743b9ef4375d60ae69923c3766173 +refs/heads/master: 362e6663ef2369d77251496d865ad02a2376f962 diff --git a/trunk/fs/compat.c b/trunk/fs/compat.c index 075d0509970d..aae13d31612f 100644 --- a/trunk/fs/compat.c +++ b/trunk/fs/compat.c @@ -1239,7 +1239,7 @@ static int compat_count(compat_uptr_t __user *argv, int max) if (!p) break; argv++; - if(++i > max) + if (i++ >= max) return -E2BIG; } } diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index cecee501ce78..7b5ed50eadeb 100644 --- a/trunk/fs/exec.c +++ b/trunk/fs/exec.c @@ -391,7 +391,7 @@ static int count(char __user * __user * argv, int max) if (!p) break; argv++; - if(++i > max) + if (i++ >= max) return -E2BIG; cond_resched(); }