diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-06 16:48:40 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:14:19 -0500 |
commit | 9132983ae140a8ca81e95e081d5a4c0dd7a7f670 (patch) | |
tree | f3aec20b1bb5a2cc111bbbf6775a0f8d84d28994 /arch/sparc64/kernel/sys_sparc.c | |
parent | f7c00338cfeef125032aa12aa8ebeacf9e117e81 (diff) |
[SPARC64]: kzalloc() conversion
this patch converts arch/sparc64 to kzalloc usage.
Crosscompile tested with allyesconfig.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/sys_sparc.c')
-rw-r--r-- | arch/sparc64/kernel/sys_sparc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sparc64/kernel/sys_sparc.c b/arch/sparc64/kernel/sys_sparc.c index 095db723bb8a..8840415408be 100644 --- a/arch/sparc64/kernel/sys_sparc.c +++ b/arch/sparc64/kernel/sys_sparc.c | |||
@@ -600,12 +600,10 @@ asmlinkage long sys_utrap_install(utrap_entry_t type, | |||
600 | } | 600 | } |
601 | if (!current_thread_info()->utraps) { | 601 | if (!current_thread_info()->utraps) { |
602 | current_thread_info()->utraps = | 602 | current_thread_info()->utraps = |
603 | kmalloc((UT_TRAP_INSTRUCTION_31+1)*sizeof(long), GFP_KERNEL); | 603 | kzalloc((UT_TRAP_INSTRUCTION_31+1)*sizeof(long), GFP_KERNEL); |
604 | if (!current_thread_info()->utraps) | 604 | if (!current_thread_info()->utraps) |
605 | return -ENOMEM; | 605 | return -ENOMEM; |
606 | current_thread_info()->utraps[0] = 1; | 606 | current_thread_info()->utraps[0] = 1; |
607 | memset(current_thread_info()->utraps+1, 0, | ||
608 | UT_TRAP_INSTRUCTION_31*sizeof(long)); | ||
609 | } else { | 607 | } else { |
610 | if ((utrap_handler_t)current_thread_info()->utraps[type] != new_p && | 608 | if ((utrap_handler_t)current_thread_info()->utraps[type] != new_p && |
611 | current_thread_info()->utraps[0] > 1) { | 609 | current_thread_info()->utraps[0] > 1) { |