Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212201
b: refs/heads/master
c: 6e2fff5
h: refs/heads/master
i:
  212199: 83ee22e
v: v3
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent fcd60eb commit 4549ccc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e495529b62cf462eb2d8875fe15ca446b8e1f94
refs/heads/master: 6e2fff50a5bd72a3f9e6f3ef6e9137efddb2d580
23 changes: 11 additions & 12 deletions trunk/arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,19 +185,18 @@ static struct irq_cfg *get_one_free_irq_cfg(int node)
struct irq_cfg *cfg;

cfg = kzalloc_node(sizeof(*cfg), GFP_ATOMIC, node);
if (cfg) {
if (!zalloc_cpumask_var_node(&cfg->domain, GFP_ATOMIC, node)) {
kfree(cfg);
cfg = NULL;
} else if (!zalloc_cpumask_var_node(&cfg->old_domain,
GFP_ATOMIC, node)) {
free_cpumask_var(cfg->domain);
kfree(cfg);
cfg = NULL;
}
}

if (!cfg)
return NULL;
if (!zalloc_cpumask_var_node(&cfg->domain, GFP_ATOMIC, node))
goto out_cfg;
if (!zalloc_cpumask_var_node(&cfg->old_domain, GFP_ATOMIC, node))
goto out_domain;
return cfg;
out_domain:
free_cpumask_var(cfg->domain);
out_cfg:
kfree(cfg);
return NULL;
}

int arch_init_chip_data(struct irq_desc *desc, int node)
Expand Down

0 comments on commit 4549ccc

Please sign in to comment.