diff options
author | Peter Maydell | 2022-01-11 18:10:47 +0100 |
---|---|---|
committer | Peter Maydell | 2022-01-20 17:04:58 +0100 |
commit | b13148d91805143aba3e0b4441e760b9bea03b8c (patch) | |
tree | 990b1c9f9c67e48d9448b27a1b98d469e65098db /scripts/switch-timer-api | |
parent | hw/intc/arm_gicv3_its: Factor out "find address of table entry" code (diff) | |
download | qemu-b13148d91805143aba3e0b4441e760b9bea03b8c.tar.gz qemu-b13148d91805143aba3e0b4441e760b9bea03b8c.tar.xz qemu-b13148d91805143aba3e0b4441e760b9bea03b8c.zip |
hw/intc/arm_gicv3_its: Check indexes before use, not after
In a few places in the ITS command handling functions, we were
doing the range-check of an event ID or device ID only after using
it as a table index; move the checks to before the uses.
This misordering wouldn't have very bad effects because the
tables are in guest memory anyway.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20220111171048.3545974-13-peter.maydell@linaro.org
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions