Skip to content

Commit

Permalink
drm/panel: raspberrypi-touchscreen: Prevent double-free
Browse files Browse the repository at this point in the history
[ Upstream commit 7bbcb91 ]

The mipi_dsi_device allocated by mipi_dsi_device_register_full() is
already free'd on release.

Fixes: 2f733d6 ("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>
  • Loading branch information
mripard authored and gregkh committed Jul 28, 2021
1 parent 9e03739 commit b91e5b6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b91e5b6

Please sign in to comment.