diff options
author | 2020-07-24 15:03:59 +0200 | |
---|---|---|
committer | 2020-07-24 15:03:59 +0200 | |
commit | b35ad8405d3951721126c3942d863056c2f39c64 (patch) | |
tree | a33abc961c828287673b607c430d6fb80754807f /drivers/pci/controller/vmd.c | |
parent | x86: Correct noinstr qualifiers (diff) | |
parent | entry: Provide infrastructure for work before transitioning to guest mode (diff) | |
download | wireguard-linux-b35ad8405d3951721126c3942d863056c2f39c64.tar.xz wireguard-linux-b35ad8405d3951721126c3942d863056c2f39c64.zip |
Merge branch 'core/entry' into x86/entry
Pick up generic entry code to migrate x86 over.
Diffstat (limited to 'drivers/pci/controller/vmd.c')
-rw-r--r-- | drivers/pci/controller/vmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index e386d4eac407..9a64cf90c291 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c @@ -546,9 +546,10 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features) vmd->irq_domain = pci_msi_create_irq_domain(fn, &vmd_msi_domain_info, x86_vector_domain); - irq_domain_free_fwnode(fn); - if (!vmd->irq_domain) + if (!vmd->irq_domain) { + irq_domain_free_fwnode(fn); return -ENODEV; + } pci_add_resource(&resources, &vmd->resources[0]); pci_add_resource_offset(&resources, &vmd->resources[1], offset[0]); |