Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80117
b: refs/heads/master
c: e5fc316
h: refs/heads/master
i:
  80115: 5401bb7
v: v3
  • Loading branch information
Julia Lawall authored and Ingo Molnar committed Jan 30, 2008
1 parent 4c3b98d commit b105102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31f80e45ea26008939790b4363a4fdcff240e0d6
refs/heads/master: e5fc3161969b3c82c8c61af8c8d360e39977ae2e
8 changes: 5 additions & 3 deletions trunk/arch/x86/ia32/ia32_aout.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/binfmts.h>
#include <linux/personality.h>
#include <linux/init.h>
#include <linux/jiffies.h>

#include <asm/system.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -359,13 +360,14 @@ static int load_aout_binary(struct linux_binprm *bprm, struct pt_regs *regs)
#ifdef WARN_OLD
static unsigned long error_time, error_time2;
if ((ex.a_text & 0xfff || ex.a_data & 0xfff) &&
(N_MAGIC(ex) != NMAGIC) && (jiffies-error_time2) > 5*HZ) {
(N_MAGIC(ex) != NMAGIC) &&
time_after(jiffies, error_time2 + 5*HZ)) {
printk(KERN_NOTICE "executable not page aligned\n");
error_time2 = jiffies;
}

if ((fd_offset & ~PAGE_MASK) != 0 &&
(jiffies - error_time) > 5*HZ) {
time_after(jiffies, error_time + 5*HZ)) {
printk(KERN_WARNING
"fd_offset is not page aligned. Please convert "
"program: %s\n",
Expand Down Expand Up @@ -484,7 +486,7 @@ static int load_aout_library(struct file *file)

#ifdef WARN_OLD
static unsigned long error_time;
if ((jiffies-error_time) > 5*HZ) {
if (time_after(jiffies, error_time + 5*HZ)) {
printk(KERN_WARNING
"N_TXTOFF is not page aligned. Please convert "
"library: %s\n",
Expand Down

0 comments on commit b105102

Please sign in to comment.