Revision 42e4126b
ID | 42e4126b793d15ec40f3a84017e1d8afecda1b6d |
pci: Common overflow prevention
Introduce pci_config_read/write_common helpers to prevent passing
accesses down the callback chain that go beyond the config space limits.
Adjust length assertions as they are no longer correct (cutting may
generate valid 3 byte accesses).
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Files
- added
- modified
- copied
- renamed
- deleted
- hw
- pci.c (diff)
- pci_host.c (diff)
- pci_host.h (diff)
- pcie_host.c (diff)