Loading drivers/iommu/iommu-debug.c +6 −1 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1546,6 +1546,11 @@ static ssize_t iommu_debug_atos_write(struct file *file, return -EINVAL; } if (!ddev->domain) { pr_err_ratelimited("No domain. Did you already attach?\n"); return -EINVAL; } phys = iommu_iova_to_phys(ddev->domain, iova); pfn = __phys_to_pfn(phys); if (!pfn_valid(pfn)) { Loading Loading
drivers/iommu/iommu-debug.c +6 −1 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1546,6 +1546,11 @@ static ssize_t iommu_debug_atos_write(struct file *file, return -EINVAL; } if (!ddev->domain) { pr_err_ratelimited("No domain. Did you already attach?\n"); return -EINVAL; } phys = iommu_iova_to_phys(ddev->domain, iova); pfn = __phys_to_pfn(phys); if (!pfn_valid(pfn)) { Loading