]> git.dujemihanovic.xyz Git - u-boot.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)
commit6a8cb878a24257ea64dfbd0f5493f07759eb5a0d
tree81293cefd32276c68e5b291a05c592811965408d
parentf2c1ef1b6dfe93e9912d5d5dfae1e527da511c3f
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