pci: Assert irqnum is between 0 and bus->nirqs in pci_bus_change_irq_level
commit459ca8bfa41b42b9d80739929f09f792207f15f3
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 24 Oct 2020 20:39:00 +0000 (24 22:39 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 30 Oct 2020 08:29:13 +0000 (30 04:29 -0400)
tree013cf643c2aa1722cf61e2a0b05f126248eb1dae
parentb06fe3e703f833866914c03c3fb0acc02385c824
pci: Assert irqnum is between 0 and bus->nirqs in pci_bus_change_irq_level

These assertions similar to those in the adjacent pci_bus_get_irq_level()
function ensure that irqnum lies within the valid PCI bus IRQ range.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20201011082022.3016-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201024203900.3619498-3-f4bug@amsat.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c