diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-12 15:01:31 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-12 15:55:44 -0700 |
commit | 7d4ee289d139d27b619c08c9809e7b1088c100aa (patch) | |
tree | b69eeae574a3888517ade9dfacd1813aa5b58b0e /arch/sparc | |
parent | 80a56ab626c70468be92e74cf3d288ffaed23fdb (diff) | |
download | op-kernel-dev-7d4ee289d139d27b619c08c9809e7b1088c100aa.zip op-kernel-dev-7d4ee289d139d27b619c08c9809e7b1088c100aa.tar.gz |
sparc: Fix user_regset 'n' field values.
As noticed by Russell King, we were not setting this properly
to the number of entries, but rather the total size.
This results in the core dumping code allocating waayyyy too
much memory.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/ptrace.c b/arch/sparc/kernel/ptrace.c index 20699c7..8ce6285 100644 --- a/arch/sparc/kernel/ptrace.c +++ b/arch/sparc/kernel/ptrace.c @@ -288,7 +288,7 @@ static const struct user_regset sparc32_regsets[] = { */ [REGSET_GENERAL] = { .core_note_type = NT_PRSTATUS, - .n = 38 * sizeof(u32), + .n = 38, .size = sizeof(u32), .align = sizeof(u32), .get = genregs32_get, .set = genregs32_set }, @@ -304,7 +304,7 @@ static const struct user_regset sparc32_regsets[] = { */ [REGSET_FP] = { .core_note_type = NT_PRFPREG, - .n = 99 * sizeof(u32), + .n = 99, .size = sizeof(u32), .align = sizeof(u32), .get = fpregs32_get, .set = fpregs32_set }, |