Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264209
b: refs/heads/master
c: eef24af
h: refs/heads/master
i:
  264207: 4dd2158
v: v3
  • Loading branch information
Rob Herring authored and Thomas Gleixner committed Sep 20, 2011
1 parent 2310c9d commit b0f3811
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 5bd078dda4d4fbdb4bd138a6bd5b6e274c019ed2
refs/heads/master: eef24afb28561a5a9f4be8f8da97735b7e6a826f
6 changes: 5 additions & 1 deletion trunk/kernel/irq/irqdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ void irq_domain_add(struct irq_domain *domain)
*/
for (hwirq = 0; hwirq < domain->nr_irq; hwirq++) {
d = irq_get_irq_data(irq_domain_to_irq(domain, hwirq));
if (d || d->domain) {
if (!d) {
WARN(1, "error: assigning domain to non existant irq_desc");
return;
}
if (d->domain) {
/* things are broken; just report, don't clean up */
WARN(1, "error: irq_desc already assigned to a domain");
return;
Expand Down

0 comments on commit b0f3811

Please sign in to comment.