[PATCH 2.6.35 & stable (v2)] powerpc: fix logic error in	fixup_irqs
    Johannes Berg 
    johannes at sipsolutions.net
       
    Sat Jun 12 07:10:08 EST 2010
    
    
  
On Fri, 2010-06-11 at 22:55 +0200, Johannes Berg wrote:
> When SPARSE_IRQ is set, irq_to_desc() can
> return NULL. While the code here has a
> check for NULL, it's not really correct.
> Fix it by separating the check for it.
Incidentally, there's another quirk in fixup_irqs():
...
        alloc_cpumask_var(&mask, GFP_KERNEL);
...
        local_irq_enable();
        mdelay(1);
        local_irq_disable();
Either it's called with IRQs disabled, in which case it shouldn't do
GFP_KERNEL, or it's called with IRQs enabled, in which case it doesn't
need the local_irq_enable(), no?
johannes
    
    
More information about the Linuxppc-dev
mailing list