Patch "drm/bridge: Fix free wrong object in sii8620_init_rcp_input_dev" has been added to the 5.17-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/bridge: Fix free wrong object in sii8620_init_rcp_input_dev

to the 5.17-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-bridge-fix-free-wrong-object-in-sii8620_init_rcp.patch
and it can be found in the queue-5.17 subdirectory.

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



commit 3f83059d5fa099ab2dfdb5220b7a97d3794ac8a1
Author: Miaoqian Lin <linmq006@xxxxxxxxx>
Date:   Mon Dec 27 09:25:22 2021 +0000

    drm/bridge: Fix free wrong object in sii8620_init_rcp_input_dev
    
    [ Upstream commit 7c442e76c06cb1bef16a6c523487438175584eea ]
    
    rc_dev is allocated by rc_allocate_device(), and doesn't assigned to
    ctx->rc_dev before calling  rc_free_device(ctx->rc_dev).
    So it should call rc_free_device(rc_dev);
    
    Fixes: e25f1f7c94e1 ("drm/bridge/sii8620: add remote control support")
    Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx>
    Reviewed-by: Robert Foss <robert.foss@xxxxxxxxxx>
    Signed-off-by: Robert Foss <robert.foss@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211227092522.21755-1-linmq006@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c
index 843265d7f1b1..ec7745c31da0 100644
--- a/drivers/gpu/drm/bridge/sil-sii8620.c
+++ b/drivers/gpu/drm/bridge/sil-sii8620.c
@@ -2120,7 +2120,7 @@ static void sii8620_init_rcp_input_dev(struct sii8620 *ctx)
 	if (ret) {
 		dev_err(ctx->dev, "Failed to register RC device\n");
 		ctx->error = ret;
-		rc_free_device(ctx->rc_dev);
+		rc_free_device(rc_dev);
 		return;
 	}
 	ctx->rc_dev = rc_dev;



[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