syscall_exec16: fix dumb error in optimisation changes
authorAlan Cox <alan@linux.intel.com>
Fri, 5 Jun 2015 14:02:08 +0000 (15:02 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 5 Jun 2015 14:02:08 +0000 (15:02 +0100)
Kernel/syscall_exec16.c

index cdb046c..a378479 100644 (file)
@@ -196,7 +196,7 @@ arg_t _execve(void)
 
        /* Wipe the memory in the BSS. We don't wipe the memory above
           that on 8bit boxes, but defer it to brk/sbrk() */
-       uzero((uint8_t *)progptr, progptr + bss);
+       uzero((uint8_t *)progptr, bss);
 
        udata.u_break = (int) progptr + bss;    //  Set initial break for program