diff options
| author | Maxime Ripard <[email protected]> | 2021-07-20 13:45:23 +0000 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2021-07-22 09:37:03 +0000 |
| commit | 7bbcb919e32d776ca8ddce08abb391ab92eef6a9 (patch) | |
| tree | 67bd199178942c9313a05bbe612d880e7bd0bb3b /drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | |
| parent | drm/ttm: add missing NULL checks (diff) | |
| download | kernel-7bbcb919e32d776ca8ddce08abb391ab92eef6a9.tar.gz kernel-7bbcb919e32d776ca8ddce08abb391ab92eef6a9.zip | |
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: 2f733d6194bd ("drm/panel: Add support for the Raspberry Pi 7" Touchscreen.")
Signed-off-by: Maxime Ripard <[email protected]>
Reviewed-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c')
| -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 2229f1af2ca8..46029c5610c8 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; } |
