Skip to contentSkip to conversation

Patch "drm: Match sysfs name in link removal to link creation" has been added to the 4.16-stable tree

PATCH [email protected] 1 participant 1 message May 20, 2018

Subsystems (2)
lore
Share & tools
lore

[email protected]

author Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm: Match sysfs name in link removal to link creation

to the 4.16-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-match-sysfs-name-in-link-removal-to-link-creation.patch
and it can be found in the queue-4.16 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

From 7f6df440b8623c441c42d070bf592e2d2c1fa9bb Mon Sep 17 00:00:00 2001
From: Haneen Mohammed <[email protected]>
Date: Fri, 11 May 2018 07:15:42 +0300
Subject: drm: Match sysfs name in link removal to link creation

From: Haneen Mohammed <[email protected]>

commit 7f6df440b8623c441c42d070bf592e2d2c1fa9bb upstream.

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]> # v4.10+
[seanpaul added Fixes and Cc tags]
---
 drivers/gpu/drm/drm_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_drv.c +1 -1
@@ -716,7 +716,7 @@ static void remove_compat_control_link(s
 	if (!minor)
 		return;
 
-	name = kasprintf(GFP_KERNEL, "controlD%d", minor->index);
+	name = kasprintf(GFP_KERNEL, "controlD%d", minor->index + 64);
 	if (!name)
 		return;
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.16/drm-match-sysfs-name-in-link-removal-to-link-creation.patch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel