]> git.baikalelectronics.ru Git - uboot.git/commit
virtio: pci: Fix discovery of device config length
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:00 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 19:50:45 +0000 (15:50 -0400)
commitb02aa56eb0def0bd89dcb3e48975ed6839955e8f
tree850d9ec1f64bb76ba7a6f4dbfd44dbc606b03c65
parentff43550e83ab38ffb3be6e69ec6fc113a9c10e32
virtio: pci: Fix discovery of device config length

The length of the device config was erroneously being taken from the
notify capability. Correct this by finding the length in the device
capability.

Fixes: a6de26e73e52 ("virtio: pci: Support non-legacy PCI transport device")
Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/virtio/virtio_pci_modern.c