projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6161aa
)
x86/platform/uv: Replace kmalloc() & memset with kzalloc()
author
Alexandru Gheorghiu
<gheorghiuandru@gmail.com>
Sat, 9 Mar 2013 09:40:43 +0000
(11:40 +0200)
committer
Ingo Molnar
<mingo@kernel.org>
Mon, 11 Mar 2013 07:33:01 +0000
(08:33 +0100)
This was found using coccicheck.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Link:
http://lkml.kernel.org/r/1362822043-15559-1-git-send-email-gheorghiuandru@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/uv/uv_time.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/platform/uv/uv_time.c
b/arch/x86/platform/uv/uv_time.c
index 98718f604eb67e5a811f888084c27dff81f69c45..5c86786bbfd2e363a60c88e78ea73f6fb22753eb 100644
(file)
--- a/
arch/x86/platform/uv/uv_time.c
+++ b/
arch/x86/platform/uv/uv_time.c
@@
-159,10
+159,9
@@
static __init int uv_rtc_allocate_timers(void)
{
int cpu;
- blade_info = k
m
alloc(uv_possible_blades * sizeof(void *), GFP_KERNEL);
+ blade_info = k
z
alloc(uv_possible_blades * sizeof(void *), GFP_KERNEL);
if (!blade_info)
return -ENOMEM;
- memset(blade_info, 0, uv_possible_blades * sizeof(void *));
for_each_present_cpu(cpu) {
int nid = cpu_to_node(cpu);