hw/omap_intc.c: Avoid crash on access to nonexistent banked registers
commit096685fc2a955ea17d5363ab452e301be2b43873
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 9 Nov 2011 18:45:38 +0000 (9 18:45 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Nov 2011 18:49:52 +0000 (11 12:49 -0600)
treecb51c3ef29a58cb24e6c4e4e362908ed310b7741
parent1bbd1592c89a433e1a0501d582652d54d367ca53
hw/omap_intc.c: Avoid crash on access to nonexistent banked registers

Avoid a crash due to null pointer dereference if a guest attempts
to access banked registers for a nonexistent bank. Spotted by
Coverity (see bug 887883).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/omap_intc.c