aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaneen Mohammed <[email protected]>2018-05-11 07:15:42 +0300
committerSean Paul <[email protected]>2018-05-11 09:06:05 -0400
commit7f6df440b8623c441c42d070bf592e2d2c1fa9bb (patch)
treefe6e20505b5a1b8384bbde50c9001c8637064547
parent9a0e9802217291e54c4dd1fc5462f189a4be14ec (diff)
drm: Match sysfs name in link removal to link creation
This patch matches the sysfs name used in the unlinking with the linking function. Otherwise, remove_compat_control_link() fails to remove sysfs created by create_compat_control_link() in drm_dev_register(). Fixes: 6449b088dd51 ("drm: Add fake controlD* symlinks for backwards compat") Cc: Dave Airlie <[email protected]> Cc: Alex Deucher <[email protected]> Cc: Emil Velikov <[email protected]> Cc: David Herrmann <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Gustavo Padovan <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Sean Paul <[email protected]> Cc: David Airlie <[email protected]> Cc: [email protected] Cc: <[email protected]> # v4.10+ Signed-off-by: Haneen Mohammed <[email protected]> [seanpaul added Fixes and Cc tags] Signed-off-by: Sean Paul <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20180511041542.GA4253@haneen-vb
-rw-r--r--drivers/gpu/drm/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index a1b9338736e3..c2c21d839727 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -716,7 +716,7 @@ static void remove_compat_control_link(struct drm_device *dev)
if (!minor)
return;
- name = kasprintf(GFP_KERNEL, "controlD%d", minor->index);
+ name = kasprintf(GFP_KERNEL, "controlD%d", minor->index + 64);
if (!name)
return;