commit | 42e4126b793d15ec40f3a84017e1d8afecda1b6d | [log] [tgz] |
---|---|---|
author | Jan Kiszka <jan.kiszka@siemens.com> | Fri Jul 22 11:05:01 2011 +0200 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed Jul 27 10:57:22 2011 +0300 |
tree | cad2ca961f45dbfca771a370cf8fd95c47cd09ba | |
parent | 85dde9a90b9d26273ef531d344b2cdfee9a6683d [diff] |
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>