]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/exec.c
ext2: avoid printk floods in the face of directory corruption
[linux-2.6-omap-h63xx.git] / fs / exec.c
index cecee501ce78805c32c9d007c658fce1e87b0a97..4a790f2e224ef260d1ca77f6d187f4199c14aefe 100644 (file)
--- a/fs/exec.c
+++ b/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();
                }
@@ -1189,7 +1189,7 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
                        return retval;
 
                /* Remember if the application is TASO.  */
-               bprm->sh_bang = eh->ah.entry < 0x100000000UL;
+               bprm->taso = eh->ah.entry < 0x100000000UL;
 
                bprm->file = file;
                bprm->loader = loader;