diff options
| author | Xuan Zhuo <[email protected]> | 2023-10-19 03:49:02 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2023-11-01 13:19:59 +0000 |
| commit | e0592acd1ef2497b861ef7ed6eda14b092b1e667 (patch) | |
| tree | ba4a09255d46d09b320943599ac73b56098cfd00 /drivers/pci/controller/pci-host-generic.c | |
| parent | virtio-blk: fix implicit overflow on virtio_max_dma_size (diff) | |
| download | kernel-e0592acd1ef2497b861ef7ed6eda14b092b1e667.tar.gz kernel-e0592acd1ef2497b861ef7ed6eda14b092b1e667.zip | |
virtio_pci: add check for common cfg size
Some buggy devices, the common cfg size may not match the features.
This patch checks the common cfg size for the
features(VIRTIO_F_NOTIF_CONFIG_DATA, VIRTIO_F_RING_RESET). When the
common cfg size does not match the corresponding feature, we fail the
probe and print error message.
Signed-off-by: Xuan Zhuo <[email protected]>
Acked-by: Jason Wang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
