|
@@ -6970,7 +6970,7 @@ static int init_rootdomain(struct root_domain *rd, bool bootmem)
|
|
|
}
|
|
|
|
|
|
if (!alloc_cpumask_var(&rd->span, GFP_KERNEL))
|
|
|
- goto free_rd;
|
|
|
+ goto out;
|
|
|
if (!alloc_cpumask_var(&rd->online, GFP_KERNEL))
|
|
|
goto free_span;
|
|
|
if (!alloc_cpumask_var(&rd->rto_mask, GFP_KERNEL))
|
|
@@ -6986,8 +6986,7 @@ free_online:
|
|
|
free_cpumask_var(rd->online);
|
|
|
free_span:
|
|
|
free_cpumask_var(rd->span);
|
|
|
-free_rd:
|
|
|
- kfree(rd);
|
|
|
+out:
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
|