Patch "drm/vkms: Drop unnecessary call to drm_crtc_cleanup()" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

    drm/vkms: Drop unnecessary call to drm_crtc_cleanup()

to the 6.11-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-vkms-drop-unnecessary-call-to-drm_crtc_cleanup.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 8feda7a95c6c5929b86c3898cb525d29413b3ffc
Author: José Expósito <jose.exposito89@xxxxxxxxx>
Date:   Thu Oct 31 19:38:35 2024 +0100

    drm/vkms: Drop unnecessary call to drm_crtc_cleanup()
    
    [ Upstream commit 1d43dddd7c38ea1aa93f78f7ee10087afb0a561f ]
    
    CRTC creation uses drmm_crtc_init_with_planes(), which automatically
    handles cleanup. However, an unnecessary call to drm_crtc_cleanup() is
    still present in the vkms_output_init() error path.
    
    Fixes: 99cc528ebe92 ("drm/vkms: Use drmm_crtc_init_with_planes()")
    Signed-off-by: José Expósito <jose.exposito89@xxxxxxxxx>
    Reviewed-by: Maíra Canal <mcanal@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20241031183835.3633-1-jose.exposito89@xxxxxxxxx
    Acked-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx>
    Signed-off-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/vkms/vkms_output.c b/drivers/gpu/drm/vkms/vkms_output.c
index 5ce70dd946aa6..24589b947dea3 100644
--- a/drivers/gpu/drm/vkms/vkms_output.c
+++ b/drivers/gpu/drm/vkms/vkms_output.c
@@ -84,7 +84,7 @@ int vkms_output_init(struct vkms_device *vkmsdev, int index)
 				 DRM_MODE_CONNECTOR_VIRTUAL);
 	if (ret) {
 		DRM_ERROR("Failed to init connector\n");
-		goto err_connector;
+		return ret;
 	}
 
 	drm_connector_helper_add(connector, &vkms_conn_helper_funcs);
@@ -119,8 +119,5 @@ int vkms_output_init(struct vkms_device *vkmsdev, int index)
 err_encoder:
 	drm_connector_cleanup(connector);
 
-err_connector:
-	drm_crtc_cleanup(crtc);
-
 	return ret;
 }




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux