]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:48:15 +0000 (22:48 +0200)
commitdaf5c72a0c01479108b9d6df73448b5bd4126abf
tree9df9fac9ba7a9932caf193f6daab168b0eba5063
parenta9307755b77afaa879be41d438f691d403569050
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