aboutsummaryrefslogtreecommitdiffstats
path: root/fs/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/compat.c')
-rw-r--r--fs/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat.c b/fs/compat.c
index 075d0509970d..aae13d31612f 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -1239,7 +1239,7 @@ static int compat_count(compat_uptr_t __user *argv, int max)
1239 if (!p) 1239 if (!p)
1240 break; 1240 break;
1241 argv++; 1241 argv++;
1242 if(++i > max) 1242 if (i++ >= max)
1243 return -E2BIG; 1243 return -E2BIG;
1244 } 1244 }
1245 } 1245 }