OSDN Git Service

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)
committerRobert Foss <robert.foss@linaro.org>
Tue, 4 Jan 2022 13:34:39 +0000 (14:34 +0100)
commit7c442e76c06cb1bef16a6c523487438175584eea
tree3c42b4e2613ff24bac04eb34d8ba67fc701207f0
parent50d76e3d3ec0c18dbe2c801af676f7e7cbedbff0
drm/bridge: Fix free wrong object in sii8620_init_rcp_input_dev

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
drivers/gpu/drm/bridge/sil-sii8620.c