Skip to content
Commit 95a272e4 authored by Xiang W's avatar Xiang W Committed by Tom Rini
Browse files

virtio: pci: fix bug of virtio_pci_map_capability

The bar of the structure virtio_pci_cap is the index, and each base
address occupies 4 bytes, so it needs to be multiplied by 4.

This patch fixes a bug reported by Felix Yan
https://lists.denx.de/pipermail/u-boot/2022-August/492779.html



Signed-off-by: default avatarXiang W <wxjstz@126.com>
Tested-by: default avatarFelix Yan <felixonmars@archlinux.org>
parent 449ed8fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment