Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e87b686b authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Ingo Molnar
Browse files

x86/platform/uv: Replace kmalloc() & memset with kzalloc()

parent f6161aa1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -159,10 +159,9 @@ static __init int uv_rtc_allocate_timers(void)
{
	int cpu;

	blade_info = kmalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL);
	blade_info = kzalloc(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);