aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0333-drm-amd-cleanup-get_mfd_cell_dev.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0333-drm-amd-cleanup-get_mfd_cell_dev.patch')
-rw-r--r--common/recipes-kernel/linux/files/0333-drm-amd-cleanup-get_mfd_cell_dev.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/common/recipes-kernel/linux/files/0333-drm-amd-cleanup-get_mfd_cell_dev.patch b/common/recipes-kernel/linux/files/0333-drm-amd-cleanup-get_mfd_cell_dev.patch
deleted file mode 100644
index 3763bae2..00000000
--- a/common/recipes-kernel/linux/files/0333-drm-amd-cleanup-get_mfd_cell_dev.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 3727f6badafd345527ab81a871c3e7cd35febca1 Mon Sep 17 00:00:00 2001
-From: Dan Carpenter <dan.carpenter@oracle.com>
-Date: Thu, 25 Feb 2016 10:47:10 +0300
-Subject: [PATCH 0333/1110] drm/amd: cleanup get_mfd_cell_dev()
-
-It's simpler to just use snprintf() to print this to one buffer instead
-of using strcpy() and strcat(). Also using snprintf() is slightly safer
-than using sprintf().
-
-Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 6 ++----
- 1 file changed, 2 insertions(+), 4 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
-index 9f8cfaa..d6b0bff 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
-@@ -240,12 +240,10 @@ static int acp_poweron(struct generic_pm_domain *genpd)
- static struct device *get_mfd_cell_dev(const char *device_name, int r)
- {
- char auto_dev_name[25];
-- char buf[8];
- struct device *dev;
-
-- sprintf(buf, ".%d.auto", r);
-- strcpy(auto_dev_name, device_name);
-- strcat(auto_dev_name, buf);
-+ snprintf(auto_dev_name, sizeof(auto_dev_name),
-+ "%s.%d.auto", device_name, r);
- dev = bus_find_device_by_name(&platform_bus_type, NULL, auto_dev_name);
- dev_info(dev, "device %s added to pm domain\n", auto_dev_name);
-
---
-2.7.4
-