diff options
| author | Fabiano Rosas <farosas@linux.ibm.com> | 2022-01-04 07:55:34 +0100 |
|---|---|---|
| committer | Cédric Le Goater <clg@kaod.org> | 2022-01-04 07:55:34 +0100 |
| commit | 2541e686589a86167cbee98162d3fde2bbf67bc2 (patch) | |
| tree | 8bc3ccccca136128527581312db59851ed6445c5 /hw/virtio/virtio-input-host-pci.c | |
| parent | 19e70626f8554245a30d3d46b613d80f2b670c04 (diff) | |
| download | focaccia-qemu-2541e686589a86167cbee98162d3fde2bbf67bc2.tar.gz focaccia-qemu-2541e686589a86167cbee98162d3fde2bbf67bc2.zip | |
target/ppc: powerpc_excp: Add excp_vectors bounds check
The next patch will start accessing the excp_vectors array earlier in the function, so add a bounds check as first thing here. This converts the empty return on POWERPC_EXCP_NONE to an error. This exception number never reaches this function and if it does it probably means something else went wrong up the line. Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20211229165751.3774248-3-farosas@linux.ibm.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/virtio/virtio-input-host-pci.c')
0 files changed, 0 insertions, 0 deletions