summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r--arch/arm/mach-tegra/devices.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index 3b2665de9326..7d9c4220bc1f 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -2005,8 +2005,7 @@ void tegra_smmu_map_misc_device(struct device *dev)
{
struct dma_iommu_mapping *map = smmu_default_map[SYSTEM_PROTECTED].map;
if (!strncmp(dummy_name, DUMMY_DEV_NAME, strlen(dummy_name))) {
- strncpy(dummy_name, dev_name(dev),
- DUMMY_DEV_MAX_NAME_SIZE);
+ strlcpy(dummy_name, dev_name(dev), sizeof(dummy_name));
arm_iommu_attach_device(dev, map);
dev_info(dev, "Mapped the misc device\n");
return;