From: Johannes Berg Date: Wed, 16 Jun 2010 00:09:35 +0000 (+0000) Subject: powerpc: Fix logic error in fixup_irqs X-Git-Tag: v2.6.35-rc5~12^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd8519248e9e17d982c6fab0f1a89bca6feb49a;p=pandora-kernel.git powerpc: Fix logic error in fixup_irqs 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. This fixes CPU hot unplug for me. Reported-by: Alastair Bridgewater Cc: stable@kernel.org [2.6.32+] Signed-off-by: Johannes Berg Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed