]> git.baikalelectronics.ru Git - uboot.git/commit
virtio: pci: Check virtio capability is in bounds
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:04 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 19:50:45 +0000 (15:50 -0400)
commit0b903119fec0790c30083e1a0c65b599037b6864
tree81293cefd32276c68e5b291a05c592811965408d
parenta40d90826877e8614f3db70142ef6c5fbf8e6b21
virtio: pci: Check virtio capability is in bounds

Ensure the virtio PCI capabilities are contained within the bounds of
the device's configuration space. The expected size of the capability is
passed when searching for the capability to enforce this check.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/virtio/virtio_pci_modern.c