Files
linux/drivers
Xuan Zhuo 534487cc3e virtio_pci: fix the common cfg map size
commit 061b39fdfe upstream.

The function vp_modern_map_capability() takes the size parameter,
which corresponds to the size of virtio_pci_common_cfg. As a result,
this indicates the size of memory area to map.

Now the size is the size of virtio_pci_common_cfg, but some feature(such
as the _F_RING_RESET) needs the virtio_pci_modern_common_cfg, so this
commit changes the size to the size of virtio_pci_modern_common_cfg.

Cc: stable@vger.kernel.org
Fixes: 0b50cece0b ("virtio_pci: introduce helper to get/set queue reset")
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Message-Id: <20231010031120.81272-3-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-02 09:35:23 +01:00
..
2023-09-13 09:42:56 +02:00
2023-10-25 12:03:04 +02:00
2023-10-06 14:57:04 +02:00
2023-07-23 13:49:37 +02:00
2023-07-19 16:21:57 +02:00
2023-10-10 22:00:38 +02:00
2023-09-13 09:42:58 +02:00
2023-10-06 14:56:58 +02:00
2023-07-19 16:21:48 +02:00