aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/controller/vmd.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2020-07-28 15:35:50 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2020-07-28 15:35:50 +0200
commitf4a1692491b5cce8978cea19cb8946bc2c6f14bc (patch)
tree1865126859b5b9d613c49113a5aaafc78f79b99b /drivers/pci/controller/vmd.c
parentdrm: hold gem reference until object is no longer accessed (diff)
parentMerge branch 'linux-5.8' of git://github.com/skeggsb/linux into drm-fixes (diff)
downloadwireguard-linux-f4a1692491b5cce8978cea19cb8946bc2c6f14bc.tar.xz
wireguard-linux-f4a1692491b5cce8978cea19cb8946bc2c6f14bc.zip
Merge remote-tracking branch 'drm/drm-fixes' into drm-misc-fixes
Updating drm-misc-fixes to v5.8-rc7.
Diffstat (limited to 'drivers/pci/controller/vmd.c')
-rw-r--r--drivers/pci/controller/vmd.c5
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]);