diff options
author | Ioana Radulescu <ruxandra.radulescu@nxp.com> | 2017-05-05 10:12:57 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:25 (GMT) |
commit | 16aa1a45e21ced37cb748c484c06425b8ec4b6a2 (patch) | |
tree | 638b8789c85d7452c90dbe48e5fb30d1809d4296 /drivers | |
parent | d1700e48331006ac3b357ae1a2eece107cb9dca0 (diff) | |
download | linux-16aa1a45e21ced37cb748c484c06425b8ec4b6a2.tar.xz |
staging: fsl-dpaa2/eth: Fix bug in address translation
Fix an issue in dpaa2_eth_iova_to_virt() when SMMU is
not enabled.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index 8af795e..aac85ae 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -63,7 +63,7 @@ void *dpaa2_eth_iova_to_virt(struct iommu_domain *domain, dma_addr_t iova_addr) { phys_addr_t phys_addr; - phys_addr = domain ? iommu_iova_to_phys(domain, iova_addr) : phys_addr; + phys_addr = domain ? iommu_iova_to_phys(domain, iova_addr) : iova_addr; return phys_to_virt(phys_addr); } |