Skip to content

Commit 7bbcb91

Browse files
committed
drm/panel: raspberrypi-touchscreen: Prevent double-free
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
1 parent 2dbd9c2 commit 7bbcb91

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ static int rpi_touchscreen_remove(struct i2c_client *i2c)
447447
drm_panel_remove(&ts->base);
448448

449449
mipi_dsi_device_unregister(ts->dsi);
450-
kfree(ts->dsi);
451450

452451
return 0;
453452
}

0 commit comments

Comments
 (0)