]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iommu: Add missing new line for dma type
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 24 May 2019 06:30:56 +0000 (14:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:51 +0000 (14:50 +0100)
[ Upstream commit 24f307d8abf79486dd3c1b645037df7d91602aaa ]

So that all types are printed in the same format.

Fixes: c52c72d3dee81 ("iommu: Add sysfs attribyte for domain type")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/iommu.c

index ee25ec22778ef2e1326a11bc080ef2a5d275bd0c..b82bec4224b913480d6f43c98dd3c31f1e4b6b30 100644 (file)
@@ -317,7 +317,7 @@ static ssize_t iommu_group_show_type(struct iommu_group *group,
                        type = "unmanaged\n";
                        break;
                case IOMMU_DOMAIN_DMA:
-                       type = "DMA";
+                       type = "DMA\n";
                        break;
                }
        }