summaryrefslogtreecommitdiffstats
path: root/fs/compat.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-09-15 06:40:00 +0200
committerDavid S. Miller <davem@davemloft.net>2005-09-15 06:40:00 +0200
commit4a805e863d6b9466baf7084e1d6fdbe6e0628d8e (patch)
tree531d26f7f339f316da8d932538e4dcf9c580461d /fs/compat.c
parentPartially revert "Fix time going twice as fast problem on ATI Xpress chipsets" (diff)
downloadlinux-4a805e863d6b9466baf7084e1d6fdbe6e0628d8e.tar.xz
linux-4a805e863d6b9466baf7084e1d6fdbe6e0628d8e.zip
[COMPAT]: Fixup compat_do_execve()
Missing acct_update_integrals() and update_mem_hiwater() calls compared to it's native counterpart. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/compat.c')
-rw-r--r--fs/compat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/compat.c b/fs/compat.c
index ac3fb9ed8eea..a719e158e002 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -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;
}