|
@@ -261,8 +261,6 @@ void rq_attach_root(struct rq *rq, struct root_domain *rd)
|
|
|
|
|
|
static int init_rootdomain(struct root_domain *rd)
|
|
|
{
|
|
|
- memset(rd, 0, sizeof(*rd));
|
|
|
-
|
|
|
if (!zalloc_cpumask_var(&rd->span, GFP_KERNEL))
|
|
|
goto out;
|
|
|
if (!zalloc_cpumask_var(&rd->online, GFP_KERNEL))
|
|
@@ -311,7 +309,7 @@ static struct root_domain *alloc_rootdomain(void)
|
|
|
{
|
|
|
struct root_domain *rd;
|
|
|
|
|
|
- rd = kmalloc(sizeof(*rd), GFP_KERNEL);
|
|
|
+ rd = kzalloc(sizeof(*rd), GFP_KERNEL);
|
|
|
if (!rd)
|
|
|
return NULL;
|
|
|
|