On Mon, 12 Oct 2015, Oleksij Rempel wrote: > Am 11.10.2015 um 19:58 schrieb Thomas Gleixner: > >> + icoll_add_domain(np, ICOLL_NUM_IRQS); > >> > >> - icoll_domain = irq_domain_add_linear(np, ICOLL_NUM_IRQS, > >> - &icoll_irq_domain_ops, NULL); > >> return icoll_domain ? 0 : -ENODEV; > > > > In case of !icoll_domain this return is not reached as you paniced > > already. So why would we still check icoll_domain? > > I'm paniced on !icoll_base, icoll_domain will give only warning. > http://lxr.free-electrons.com/source/kernel/irq/irqdomain.c#L52 > > Or do i miss some thing?
Yes. Your patch makes that: >> + if (!icoll_domain) >> + panic("%s: unable add irq domain", np->full_name); Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/