]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[COMPAT]: Fixup compat_do_execve()
authorDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2005 04:40:00 +0000 (21:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2005 04:40:00 +0000 (21:40 -0700)
Missing acct_update_integrals() and update_mem_hiwater() calls
compared to it's native counterpart.

Signed-off-by: David S. Miller <davem@davemloft.net>
fs/compat.c

index ac3fb9ed8eeaf847fcd2238edb2f941d7125b7a4..a719e158e0021dd877525d2b966d458bc350aada 100644 (file)
@@ -44,6 +44,8 @@
 #include <linux/nfsd/syscall.h>
 #include <linux/personality.h>
 #include <linux/rwsem.h>
+#include <linux/acct.h>
+#include <linux/mm.h>
 
 #include <net/sock.h>          /* siocdevprivate_ioctl */
 
@@ -1487,6 +1489,8 @@ int compat_do_execve(char * filename,
 
                /* execve success */
                security_bprm_free(bprm);
+               acct_update_integrals(current);
+               update_mem_hiwater(current);
                kfree(bprm);
                return retval;
        }