Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173255
b: refs/heads/master
c: 7ecb344
h: refs/heads/master
i:
  173253: ed2f01a
  173251: efc70b8
  173247: f7262f6
v: v3
  • Loading branch information
Martin Schwidefsky authored and Martin Schwidefsky committed Dec 7, 2009
1 parent 6ae4cda commit 835349c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: b11b53342773361f3353b285eb6a3fd6074e7997
refs/heads/master: 7ecb344ae80bc03397ded3b004e06ecfe32becf9
14 changes: 4 additions & 10 deletions trunk/arch/s390/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,21 @@
extern int sysctl_userprocess_debug;
#endif

#ifdef CONFIG_KPROBES
static inline int notify_page_fault(struct pt_regs *regs, long err)
static inline int notify_page_fault(struct pt_regs *regs)
{
int ret = 0;

#ifdef CONFIG_KPROBES
/* kprobe_running() needs smp_processor_id() */
if (!user_mode(regs)) {
preempt_disable();
if (kprobe_running() && kprobe_fault_handler(regs, 14))
ret = 1;
preempt_enable();
}

#endif
return ret;
}
#else
static inline int notify_page_fault(struct pt_regs *regs, long err)
{
return 0;
}
#endif


/*
Expand Down Expand Up @@ -274,7 +268,7 @@ do_exception(struct pt_regs *regs, unsigned long error_code, int write,
int si_code;
int fault;

if (notify_page_fault(regs, error_code))
if (notify_page_fault(regs))
return;

tsk = current;
Expand Down

0 comments on commit 835349c

Please sign in to comment.