diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-07-20 15:45:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-28 14:35:41 +0200 |
commit | b91e5b63470d7a2f5225540e8093b06426d00bf9 (patch) | |
tree | 8f2bc7ac850136b3748eb3a4563ffcc494bbd2e5 | |
parent | 9e0373945ed63615689b1982e60044d2c41b3e5d (diff) | |
download | kernel_replicant_linux-b91e5b63470d7a2f5225540e8093b06426d00bf9.tar.gz kernel_replicant_linux-b91e5b63470d7a2f5225540e8093b06426d00bf9.tar.bz2 kernel_replicant_linux-b91e5b63470d7a2f5225540e8093b06426d00bf9.zip |
drm/panel: raspberrypi-touchscreen: Prevent double-free
[ Upstream commit 7bbcb919e32d776ca8ddce08abb391ab92eef6a9 ]
The mipi_dsi_device allocated by mipi_dsi_device_register_full() is
already free'd on release.
Fixes: 2f733d6194bd ("drm/panel: Add support for the Raspberry Pi 7" Touchscreen.")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210720134525.563936-9-maxime@cerno.tech
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c index 5e9ccefb88f6..bbdd086be7f5 100644 --- a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +++ b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c @@ -447,7 +447,6 @@ static int rpi_touchscreen_remove(struct i2c_client *i2c) drm_panel_remove(&ts->base); mipi_dsi_device_unregister(ts->dsi); - kfree(ts->dsi); return 0; } |