sparc: Fix user_regset 'n' field values.
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 22:01:31 +0000 (15:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 22:01:31 +0000 (15:01 -0700)
commit3c503701038ac161c269ea43cd67805a3c5669fb
treeb9e9d9da60460c028971498f78a3667c89c2b378
parent3ab5827eb0fefbfa7234f3f91f78b50f2dfcf8e4
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>
arch/sparc/kernel/ptrace.c
arch/sparc64/kernel/ptrace.c