Skip to content
Snippets Groups Projects
Commit 14d9fb02 authored by Le Tan's avatar Le Tan Committed by Michael Roth
Browse files

pci: assign devfn to pci_dev before calling pci_device_iommu_address_space()


In function do_pci_register_device() in file hw/pci/pci.c, move the assignment
of pci_dev->devfn to the position before the call to
pci_device_iommu_address_space(pci_dev) which will use the value of
pci_dev->devfn.

Fixes: 9eda7d37
    pci: Introduce helper to retrieve a PCI device's DMA address space

Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarLe Tan <tamlokveer@gmail.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
(cherry picked from commit efc8188e)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 53e4895c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment