x86: Do sanity test on pirq table before writing
authorBin Meng <bmeng.cn@gmail.com>
Mon, 25 May 2015 14:35:07 +0000 (22:35 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Jun 2015 08:39:39 +0000 (02:39 -0600)
commit67b24970cef90b6d230e370cce9db8c29b2f4d74
treec653792200965525d251f682268ae79335f61df0
parent05b98ec3468547057666dd685b2a1615298c24cc
x86: Do sanity test on pirq table before writing

If pirq_routing_table points to NULL, that means U-Boot fails to
generate the table before in create_pirq_routing_table(), so we
test it against NULL before actually writing it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/irq.c