Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323258
b: refs/heads/master
c: 0774e39
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Sep 28, 2012
1 parent 38f29a5 commit f72d02c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bef83de5a0e3031ff6ff9584b458611a7ac01b85
refs/heads/master: 0774e392555a128cff7a94929b9ce957927fef49
6 changes: 4 additions & 2 deletions trunk/drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static void swap_pci_ref(struct pci_dev **from, struct pci_dev *to)

static int iommu_init_device(struct device *dev)
{
struct pci_dev *dma_pdev, *pdev = to_pci_dev(dev);
struct pci_dev *dma_pdev = NULL, *pdev = to_pci_dev(dev);
struct iommu_dev_data *dev_data;
struct iommu_group *group;
u16 alias;
Expand All @@ -293,7 +293,9 @@ static int iommu_init_device(struct device *dev)
dev_data->alias_data = alias_data;

dma_pdev = pci_get_bus_and_slot(alias >> 8, alias & 0xff);
} else
}

if (dma_pdev == NULL)
dma_pdev = pci_dev_get(pdev);

/* Account for quirked devices */
Expand Down

0 comments on commit f72d02c

Please sign in to comment.