Merge tag 'for-6.6-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[platform/kernel/linux-rpi.git] / drivers / virtio / virtio_pci_modern_dev.c
index aad7d92..9cb601e 100644 (file)
@@ -291,7 +291,7 @@ int vp_modern_probe(struct virtio_pci_modern_device *mdev)
        err = -EINVAL;
        mdev->common = vp_modern_map_capability(mdev, common,
                                      sizeof(struct virtio_pci_common_cfg), 4,
-                                     0, sizeof(struct virtio_pci_common_cfg),
+                                     0, sizeof(struct virtio_pci_modern_common_cfg),
                                      NULL, NULL);
        if (!mdev->common)
                goto err_map_common;