diff options
author | Ladi Prosek <lprosek@redhat.com> | 2016-02-01 19:36:31 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-03-02 17:01:49 +0200 |
commit | 4e94ebdd06d5dc72b7a40fc12fc496d601fb7bbc (patch) | |
tree | 113da9721a062241f4108c993d29bdb67740cd36 /drivers/virtio/virtio_pci_modern.c | |
parent | fc77dbd34c5c99bce46d40a2491937c3bcbd10af (diff) | |
download | linux-stable-4e94ebdd06d5dc72b7a40fc12fc496d601fb7bbc.tar.gz linux-stable-4e94ebdd06d5dc72b7a40fc12fc496d601fb7bbc.tar.bz2 linux-stable-4e94ebdd06d5dc72b7a40fc12fc496d601fb7bbc.zip |
virtio-pci: read the right virtio_pci_notify_cap field
Looks like a copy-paste bug. The value is used as an optimization and a
wrong value probably isn't causing any serious damage. Found when
porting this code to Windows.
Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_pci_modern.c')
-rw-r--r-- | drivers/virtio/virtio_pci_modern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c index c0c11fad4611..7760fc1a2218 100644 --- a/drivers/virtio/virtio_pci_modern.c +++ b/drivers/virtio/virtio_pci_modern.c @@ -679,7 +679,7 @@ int virtio_pci_modern_probe(struct virtio_pci_device *vp_dev) pci_read_config_dword(pci_dev, notify + offsetof(struct virtio_pci_notify_cap, - cap.length), + cap.offset), ¬ify_offset); /* We don't know how many VQs we'll map, ahead of the time. |