drm: Match sysfs name in link removal to link creation
Subsystems (3)
PATCH 1/1 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().
Signed-off-by Haneen Mohammed <[email protected]>
--- 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(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 ;
Signature · 6 lines
2.17.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Haneen Mohammed
This patch matches the sysfs name used in the unlinking with the linking function. Otherwise,
remove_compat_control_link()fails to remove sysfs created bycreate_compat_control_link()indrm_dev_register().Signed-off-by Haneen Mohammed <[email protected]>
Hey Haneen,
Nice catch! I've applied this to drm-misc-fixes with applicable Fixes and Cc tags.
Sean
Quoted 20 lines
--- 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(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 ;Signature · 1 line
2.17.0
Signature · 5 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel