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