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