From: Thomas Gleixner Date: Fri, 28 Aug 2015 08:30:15 +0000 (+0200) Subject: x86/irq: Do not dereference irq descriptor before checking it X-Git-Tag: omap-for-v4.3/fixes-rc1~129^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a47d4576cd1c58157a2d8cfffa93aa7ca375eede;p=pandora-kernel.git x86/irq: Do not dereference irq descriptor before checking it Having the IS_NULL_OR_ERR() check after dereferencing the pointer is not really working well. Move the dereference after the check. Fixes: a782a7e46bb5 'x86/irq: Store irq descriptor in vector array' Reported-and-tested-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed