hw/arm_timer.c: Fix bounds check for Integrator timer accesses
commitee71c984342408a357a74f65915bf66484ba445a
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 11 Nov 2011 13:30:15 +0000 (11 13:30 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Nov 2011 18:49:53 +0000 (11 12:49 -0600)
treeb719615c26caa08f3eb27bd77bbc7877579942cc
parentafd4a65225318ec7900871ed69a46ce992637ef2
hw/arm_timer.c: Fix bounds check for Integrator timer accesses

There are only three counter/timers on the integrator board:
correct the bounds check to avoid an array overrun. (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/arm_timer.c