]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/bridge-connector: Fix double free in error handling paths
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Thu, 11 Jul 2024 11:26:55 +0000 (14:26 +0300)
committerRobert Foss <rfoss@kernel.org>
Mon, 5 Aug 2024 15:39:14 +0000 (17:39 +0200)
commit1fb0847392e220890c9cf8908e3ab8e7e1227ff6
tree2b8382e77cffdecb66e33a3261bab5bcedae0208
parentce4a995884ecedb98ba00e2e0b8ce94cde2060ce
drm/bridge-connector: Fix double free in error handling paths

The recent switch to drmm allocation in drm_bridge_connector_init() may
cause double free on bridge_connector in some of the error handling
paths.

Drop the explicit kfree() calls on bridge_connector.

Fixes: c12907be57b1 ("drm/bridge-connector: switch to using drmm allocations")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: default avatarRobert Foss <rfoss@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240711-bridge-connector-fix-dbl-free-v1-1-d558b2d0eb93@collabora.com
drivers/gpu/drm/drm_bridge_connector.c