dect
/
linux-2.6
Archived
13
0
Fork 0

do_coredump(): get rid of pt_regs argument

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2012-11-05 13:11:26 -05:00
parent 4aaefee589
commit 541880d9a2
3 changed files with 5 additions and 5 deletions

View File

@ -458,7 +458,7 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
return err; 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_state core_state;
struct core_name cn; struct core_name cn;
@ -474,7 +474,7 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
static atomic_t core_dump_count = ATOMIC_INIT(0); static atomic_t core_dump_count = ATOMIC_INIT(0);
struct coredump_params cprm = { struct coredump_params cprm = {
.siginfo = siginfo, .siginfo = siginfo,
.regs = regs, .regs = signal_pt_regs(),
.limit = rlimit(RLIMIT_CORE), .limit = rlimit(RLIMIT_CORE),
/* /*
* We must use the same mm->flags while dumping core to avoid * We must use the same mm->flags while dumping core to avoid

View File

@ -13,9 +13,9 @@
extern int dump_write(struct file *file, const void *addr, int nr); extern int dump_write(struct file *file, const void *addr, int nr);
extern int dump_seek(struct file *file, loff_t off); extern int dump_seek(struct file *file, loff_t off);
#ifdef CONFIG_COREDUMP #ifdef CONFIG_COREDUMP
extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs); extern void do_coredump(siginfo_t *siginfo);
#else #else
static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {} static inline void do_coredump(siginfo_t *siginfo) {}
#endif #endif
#endif /* _LINUX_COREDUMP_H */ #endif /* _LINUX_COREDUMP_H */

View File

@ -2359,7 +2359,7 @@ relock:
* first and our do_group_exit call below will use * first and our do_group_exit call below will use
* that value and ignore the one we pass it. * that value and ignore the one we pass it.
*/ */
do_coredump(info, regs); do_coredump(info);
} }
/* /*