drm/meson: fix memory leak on ->hpd_notify callback
authorJani Nikula <jani.nikula@intel.com>
Thu, 14 Sep 2023 13:10:15 +0000 (16:10 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 20 Sep 2023 13:44:31 +0000 (15:44 +0200)
commit099f0af9d98231bb74956ce92508e87cbcb896be
tree1b3cf3a7480f8d27c4917c62b64c5f3f478a762c
parente2ee60ad9aba41afb68f4387574610ee390029f1
drm/meson: fix memory leak on ->hpd_notify callback

The EDID returned by drm_bridge_get_edid() needs to be freed.

Fixes: 0af5e0b41110 ("drm/meson: encoder_hdmi: switch to bridge DRM_BRIDGE_ATTACH_NO_CONNECTOR")
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-amlogic@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: stable@vger.kernel.org # v5.17+
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230914131015.2472029-1-jani.nikula@intel.com
drivers/gpu/drm/meson/meson_encoder_hdmi.c