mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
drm/panel: raspberrypi-touchscreen: Prevent double-free
[ Upstream commit7bbcb919e3] The mipi_dsi_device allocated by mipi_dsi_device_register_full() is already free'd on release. Fixes:2f733d6194("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>
This commit is contained in:
parent
9e0373945e
commit
b91e5b6347
|
|
@ -447,7 +447,6 @@ static int rpi_touchscreen_remove(struct i2c_client *i2c)
|
||||||
drm_panel_remove(&ts->base);
|
drm_panel_remove(&ts->base);
|
||||||
|
|
||||||
mipi_dsi_device_unregister(ts->dsi);
|
mipi_dsi_device_unregister(ts->dsi);
|
||||||
kfree(ts->dsi);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user