]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/bridge: Fix free wrong object in sii8620_init_rcp_input_dev
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 27 Dec 2021 09:25:22 +0000 (09:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:54 +0000 (13:57 +0200)
commit26d36a321c62adc69568e355724431805cc114d2
treec8915081abaa69bdfff8792df3e448d4d6b5f7e8
parenta840164ab46c5bd644e559dc31bf107feffe6d26
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@gmail.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211227092522.21755-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/sil-sii8620.c