Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340363
b: refs/heads/master
c: 541880d
h: refs/heads/master
i:
  340361: 9b3cb73
  340359: a6a6de6
v: v3
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent 0b9c5f9 commit 2e40533
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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: 4aaefee589f97bb30062bbeeb793bbbf7107a9a7
refs/heads/master: 541880d9a2c7871f6370071d55aa6662d329c51e
4 changes: 2 additions & 2 deletions trunk/fs/coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
return err;
}

void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
void do_coredump(siginfo_t *siginfo)
{
struct core_state core_state;
struct core_name cn;
Expand All @@ -474,7 +474,7 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
static atomic_t core_dump_count = ATOMIC_INIT(0);
struct coredump_params cprm = {
.siginfo = siginfo,
.regs = regs,
.regs = signal_pt_regs(),
.limit = rlimit(RLIMIT_CORE),
/*
* We must use the same mm->flags while dumping core to avoid
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/coredump.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
extern int dump_write(struct file *file, const void *addr, int nr);
extern int dump_seek(struct file *file, loff_t off);
#ifdef CONFIG_COREDUMP
extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs);
extern void do_coredump(siginfo_t *siginfo);
#else
static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {}
static inline void do_coredump(siginfo_t *siginfo) {}
#endif

#endif /* _LINUX_COREDUMP_H */
2 changes: 1 addition & 1 deletion trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2359,7 +2359,7 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka,
* first and our do_group_exit call below will use
* that value and ignore the one we pass it.
*/
do_coredump(info, regs);
do_coredump(info);
}

/*
Expand Down

0 comments on commit 2e40533

Please sign in to comment.