Loading drivers/iommu/iommu-debug.c +8 −0 Original line number Diff line number Diff line Loading @@ -1488,6 +1488,10 @@ static ssize_t iommu_debug_pte_read(struct file *file, char __user *ubuf, ssize_t retval; size_t buflen; if (kptr_restrict != 0) { pr_err("kptr_restrict needs to be disabled.\n"); return -EPERM; } if (!dev->archdata.mapping) { pr_err("No mapping. Did you already attach?\n"); return -EINVAL; Loading Loading @@ -1607,6 +1611,10 @@ static ssize_t iommu_debug_dma_atos_read(struct file *file, char __user *ubuf, ssize_t retval; size_t buflen; if (kptr_restrict != 0) { pr_err("kptr_restrict needs to be disabled.\n"); return -EPERM; } if (!dev->archdata.mapping) { pr_err("No mapping. Did you already attach?\n"); return -EINVAL; Loading Loading
drivers/iommu/iommu-debug.c +8 −0 Original line number Diff line number Diff line Loading @@ -1488,6 +1488,10 @@ static ssize_t iommu_debug_pte_read(struct file *file, char __user *ubuf, ssize_t retval; size_t buflen; if (kptr_restrict != 0) { pr_err("kptr_restrict needs to be disabled.\n"); return -EPERM; } if (!dev->archdata.mapping) { pr_err("No mapping. Did you already attach?\n"); return -EINVAL; Loading Loading @@ -1607,6 +1611,10 @@ static ssize_t iommu_debug_dma_atos_read(struct file *file, char __user *ubuf, ssize_t retval; size_t buflen; if (kptr_restrict != 0) { pr_err("kptr_restrict needs to be disabled.\n"); return -EPERM; } if (!dev->archdata.mapping) { pr_err("No mapping. Did you already attach?\n"); return -EINVAL; Loading